From: ceriel Date: Thu, 8 Jan 1987 17:40:25 +0000 (+0000) Subject: %c did not work on systems that have their bytes or their words reversed. X-Git-Tag: release-5-5~5025 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=7d4d9c5c342391250b7c74165b6620f85b7e8f7c;p=ack.git %c did not work on systems that have their bytes or their words reversed. --- diff --git a/modules/src/print/format.c b/modules/src/print/format.c index 31f1f6d4e..d040e8d6c 100644 --- a/modules/src/print/format.c +++ b/modules/src/print/format.c @@ -55,7 +55,7 @@ _format(buf, fmt, argp) } else if (*pf == 'c') { - cbuf[0] = * (char *) pa; + cbuf[0] = * (int *) pa; cbuf[1] = '\0'; pa += sizeof(int); arg = &cbuf[0];