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