Fixed broken format string in rdg.c

This commit is contained in:
akallabeth 2022-07-01 11:06:40 +02:00 committed by David Fort
parent bddb71230e
commit 3e35eb3805

View File

@ -311,7 +311,8 @@ static BOOL rdg_read_http_unicode_string(wStream* s, const WCHAR** string, UINT1
/* Read length of the string */ /* Read length of the string */
if (!Stream_CheckAndLogRequiredLength(TAG, s, 4)) if (!Stream_CheckAndLogRequiredLength(TAG, s, 4))
{ {
WLog_ERR(TAG, "[%s]: Could not read stream length, only have % " PRIuz " bytes", rem); WLog_ERR(TAG, "[%s]: Could not read stream length, only have % " PRIuz " bytes",
__FUNCTION__, rem);
return FALSE; return FALSE;
} }
Stream_Read_UINT16(s, strLenBytes); Stream_Read_UINT16(s, strLenBytes);
@ -324,7 +325,7 @@ static BOOL rdg_read_http_unicode_string(wStream* s, const WCHAR** string, UINT1
{ {
WLog_ERR(TAG, WLog_ERR(TAG,
"[%s]: Could not read stream data, only have % " PRIuz " bytes, expected %" PRIu16, "[%s]: Could not read stream data, only have % " PRIuz " bytes, expected %" PRIu16,
rem - 4, strLenBytes); __FUNCTION__, rem - 4, strLenBytes);
return FALSE; return FALSE;
} }