From: mortenp Date: Thu, 22 Apr 2004 23:57:53 +0000 (+1000) Subject: fixed ch's type ('\n' was implicitly casted to an int and compared with ch, which... X-Git-Tag: RELEASE_1_0_0~299 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee7d923672a33d3f8759142c27cb99c04258676d;p=thirdparty%2Fmlmmj.git fixed ch's type ('\n' was implicitly casted to an int and compared with ch, which had only one byte of initialized content) --- diff --git a/src/mygetline.c b/src/mygetline.c index d109044a..d338f110 100644 --- a/src/mygetline.c +++ b/src/mygetline.c @@ -45,7 +45,7 @@ char *mygetline(int fd) { size_t i = 0, buf_size = BUFSIZE; /* initial buffer size */ char *buf = malloc(buf_size); - int ch; + char ch; buf[0] = '\0'; while(read(fd, &ch, 1) > 0) {