From: Erwan MAS Date: Mon, 26 May 2025 03:45:12 +0000 (-0400) Subject: - fgetc return a int not a char , and that was not portable on arm 64 X-Git-Tag: RELEASE_1.5.1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F52%2Fhead;p=thirdparty%2Fmlmmj.git - fgetc return a int not a char , and that was not portable on arm 64 --- diff --git a/src/gethdrline.c b/src/gethdrline.c index 09a8b7a9..c8fbcedd 100644 --- a/src/gethdrline.c +++ b/src/gethdrline.c @@ -36,7 +36,7 @@ char *gethdrline(FILE *f, char **unfolded) { char *line = NULL, *retstr = NULL, *oldretstr = NULL, *oldunfolded = NULL; - char ch; + int ch; size_t linecap = 0; if (getline(&line, &linecap, f) <= 0) {