diff options
Diffstat (limited to 'logger.c')
-rw-r--r-- | logger.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -151,8 +151,7 @@ extern int logger_main(int argc, char **argv) | |||
151 | 151 | ||
152 | if (fromStdinFlag==TRUE) { | 152 | if (fromStdinFlag==TRUE) { |
153 | /* read from stdin */ | 153 | /* read from stdin */ |
154 | int i=0; | 154 | int c, i=0; |
155 | char c; | ||
156 | while ((c = getc(stdin)) != EOF && i<sizeof(buf1)) { | 155 | while ((c = getc(stdin)) != EOF && i<sizeof(buf1)) { |
157 | buf1[i++]=c; | 156 | buf1[i++]=c; |
158 | } | 157 | } |