From de5c1d14914cf896ec6ebf14db0817be6d439fab Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Fri, 2 Mar 2012 09:28:00 +0100 Subject: [PATCH] Fix minor fgetc issue. --- src/util-threshold-config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)