Re: rpcrt4: Fix format specifier warning in NdrAllocate when size_t is typedef'd to unsigned long.
27 Aug
2008
27 Aug
'08
9:19 a.m.
"Rob Shearman" <robertshearman(a)gmail.com> writes:
@@ -373,7 +373,8 @@ void * WINAPI NdrAllocate(MIDL_STUB_MESSAGE *pStubMsg, size_t len) /* check for overflow */ if (adjusted_len < len) { - ERR("overflow of adjusted_len %d, len %d\n", adjusted_len, len); + ERR("overflow of adjusted_len %lu, len %lu\n", (long)adjusted_len, + (long)len);
A better fix would be to avoid size_t completely, we should use SIZE_T instead. -- Alexandre Julliard julliard(a)winehq.org
6317
Age (days ago)
6317
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard