From 7d4d9c5c342391250b7c74165b6620f85b7e8f7c Mon Sep 17 00:00:00 2001 From: ceriel Date: Thu, 8 Jan 1987 17:40:25 +0000 Subject: [PATCH] %c did not work on systems that have their bytes or their words reversed. --- modules/src/print/format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.34.1