%c did not work on systems that have their bytes or their words reversed.
authorceriel <none@none>
Thu, 8 Jan 1987 17:40:25 +0000 (17:40 +0000)
committerceriel <none@none>
Thu, 8 Jan 1987 17:40:25 +0000 (17:40 +0000)
modules/src/print/format.c

index 31f1f6d..d040e8d 100644 (file)
@@ -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];