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