Fix minor fgetc issue.

remotes/origin/master
Victor Julien 14 years ago
parent 0d6f33a15b
commit de5c1d1491

@ -812,9 +812,9 @@ int SCThresholdConfLineIsMultiline(char *line)
int SCThresholdConfLineLength(FILE *fd) { int SCThresholdConfLineLength(FILE *fd) {
long pos = ftell(fd); long pos = ftell(fd);
int len = 0; int len = 0;
char c; int c;
while ( (c = fgetc(fd)) && c != '\n' && !feof(fd)) while ( (c = fgetc(fd)) && c != EOF && !feof(fd))
len++; len++;
if (pos < 0) if (pos < 0)

Loading…
Cancel
Save