fix %hhn and %hn in the internal xvsnprintf function

This commit is contained in:
mrdudz 2023-12-11 00:18:40 +01:00
parent 6b855d562a
commit 9985ee7f61
1 changed files with 2 additions and 2 deletions

View File

@ -352,8 +352,8 @@ static void StoreOffset (PrintfCtrl* P)
/* Store the current output offset (%n format spec) */
{
switch (P->LengthMod) {
case lmChar: *va_arg (P->ap, int*) = P->BufFill; break;
case lmShort: *va_arg (P->ap, int*) = P->BufFill; break;
case lmChar: *va_arg (P->ap, char*) = P->BufFill; break;
case lmShort: *va_arg (P->ap, short*) = P->BufFill; break;
case lmInt: *va_arg (P->ap, int*) = P->BufFill; break;
case lmLong: *va_arg (P->ap, long*) = P->BufFill; break;
case lmIntMax: *va_arg (P->ap, intmax_t*) = P->BufFill; break;