%c did not work on systems that have their bytes or their words reversed.

This commit is contained in:
ceriel 1987-01-08 17:40:25 +00:00
parent 5a0140cf3a
commit 7d4d9c5c34

View 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];