From: Victor Julien Date: Fri, 2 Mar 2012 08:28:00 +0000 (+0100) Subject: Fix minor fgetc issue. X-Git-Tag: suricata-1.3beta1~138 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de5c1d14914cf896ec6ebf14db0817be6d439fab;p=thirdparty%2Fsuricata.git Fix minor fgetc issue. --- diff --git a/src/util-threshold-config.c b/src/util-threshold-config.c index 8cda18ced1..c6ee67d593 100644 --- a/src/util-threshold-config.c +++ b/src/util-threshold-config.c @@ -812,9 +812,9 @@ int SCThresholdConfLineIsMultiline(char *line) int SCThresholdConfLineLength(FILE *fd) { long pos = ftell(fd); int len = 0; - char c; + int c; - while ( (c = fgetc(fd)) && c != '\n' && !feof(fd)) + while ( (c = fgetc(fd)) && c != EOF && !feof(fd)) len++; if (pos < 0)