summaryrefslogtreecommitdiff
path: root/sysklogd/logger.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysklogd/logger.c')
-rw-r--r--sysklogd/logger.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysklogd/logger.c b/sysklogd/logger.c
index 71d7030..981748b 100644
--- a/sysklogd/logger.c
+++ b/sysklogd/logger.c
@@ -156,7 +156,8 @@ extern int logger_main(int argc, char **argv)
if (fromStdinFlag == TRUE) {
/* read from stdin */
- int c, i = 0;
+ int c;
+ unsigned int i = 0;
while ((c = getc(stdin)) != EOF && i < sizeof(buf)) {
buf[i++] = c;