Fixed problem with width modifier.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13396 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2020-03-07 08:48:34 +00:00
parent 5d2f0fdbf1
commit 293e59038d
1 changed files with 3 additions and 1 deletions

View File

@ -172,8 +172,10 @@ int chvprintf(BaseSequentialStream *chp, const char *fmt, va_list ap) {
}
/* Width modifier.*/
if (c == '*') {
if ( *fmt == '*') {
width = va_arg(ap, int);
++fmt;
c = *fmt++;
}
else {
width = 0;