Skip to content

Commit

Permalink
Fixed format string for Stream_CheckAndLogRequiredLength
Browse files Browse the repository at this point in the history
__LINE__ requires %d and not %PRIuz
  • Loading branch information
akallabeth committed Apr 23, 2022
1 parent 19de452 commit 74c1a00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions winpr/include/winpr/stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ extern "C"
WINPR_API wStream* Stream_StaticInit(wStream* s, BYTE* buffer, size_t size);
WINPR_API void Stream_Free(wStream* s, BOOL bFreeBuffer);

#define Stream_CheckAndLogRequiredLength(tag, s, len) \
Stream_CheckAndLogRequiredLengthEx(tag, WLOG_WARN, s, len, "%s(%s:%" PRIuz ")", __FUNCTION__, \
#define Stream_CheckAndLogRequiredLength(tag, s, len) \
Stream_CheckAndLogRequiredLengthEx(tag, WLOG_WARN, s, len, "%s(%s:%d)", __FUNCTION__, \
__FILE__, __LINE__)
WINPR_API BOOL Stream_CheckAndLogRequiredLengthEx(const char* tag, DWORD level, wStream* s,
UINT64 len, const char* fmt, ...);
Expand Down

0 comments on commit 74c1a00

Please sign in to comment.