summaryrefslogtreecommitdiff
path: root/src/pal/src/cruntime/silent_printf.cpp
diff options
context:
space:
mode:
authorGeoff Norton <grompf@gmail.com>2015-07-28 20:17:52 +0000
committerGeoff Norton <grompf@gmail.com>2015-07-28 20:17:52 +0000
commit28c2a839780a37e9dcfbb224f54011e795f442b3 (patch)
treee4a7f55f662075ada5b684115dc624c4335e0768 /src/pal/src/cruntime/silent_printf.cpp
parent8c4e60054ddb42298f3eebaf20c970d665474ae3 (diff)
downloadcoreclr-28c2a839780a37e9dcfbb224f54011e795f442b3.tar.gz
coreclr-28c2a839780a37e9dcfbb224f54011e795f442b3.tar.bz2
coreclr-28c2a839780a37e9dcfbb224f54011e795f442b3.zip
[pal] PAL_printf_arg_remover was not properly handling formats like %*s
Diffstat (limited to 'src/pal/src/cruntime/silent_printf.cpp')
-rw-r--r--src/pal/src/cruntime/silent_printf.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pal/src/cruntime/silent_printf.cpp b/src/pal/src/cruntime/silent_printf.cpp
index 10f60704d8..d45081042b 100644
--- a/src/pal/src/cruntime/silent_printf.cpp
+++ b/src/pal/src/cruntime/silent_printf.cpp
@@ -219,7 +219,7 @@ INT Silent_PAL_vsnprintf(LPSTR Buffer, INT Count, LPCSTR Format, va_list aparg)
va_copy(apcopy, ap);
TempInt = PAL__vsnprintf(BufferPtr, TempCount, TempBuff, apcopy);
va_end(apcopy);
- PAL_printf_arg_remover(&ap, Precision, Type, Prefix);
+ PAL_printf_arg_remover(&ap, Width, Precision, Type, Prefix);
}
if (TempInt < 0 || static_cast<size_t>(TempInt) >= TempCount) /* buffer not long enough */
@@ -432,7 +432,7 @@ int Silent_PAL_vfprintf(PAL_FILE *stream, const char *format, va_list aparg)
va_copy(apcopy, ap);
TempInt = PAL_vfprintf(stream, TempBuff, apcopy);
va_end(apcopy);
- PAL_printf_arg_remover(&ap, Precision, Type, Prefix);
+ PAL_printf_arg_remover(&ap, Width, Precision, Type, Prefix);
}
if (-1 != TempInt)