From 86ab8a32bd63b2f2a73bdcead8e2bb037589e175 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 2 Jun 2000 03:21:42 +0000 Subject: A number of additional fixed from Pavel Roskin, note some more bugs in the TODO list. Add Glenn to the Authors list for writing a mini ar for BusyBox, which is now included. -Erik --- utility.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utility.c') diff --git a/utility.c b/utility.c index 07e540e22..68bdc3197 100644 --- a/utility.c +++ b/utility.c @@ -1583,12 +1583,12 @@ cstring_alloc(FILE* f, int depth) char *cstring; char buffer[CSTRING_BUFFER_LENGTH]; int target = CSTRING_BUFFER_LENGTH * depth; - int i, len; - int size; + int c, i, len, size; /* fill buffer */ i = 0; - while ((buffer[i] = fgetc(f)) != EOF) { + while ((c = fgetc(f)) != EOF) { + buffer[i] = (char) c; if (buffer[i++] == 0x0a) { break; } if (i == CSTRING_BUFFER_LENGTH) { break; } } -- cgit v1.2.3