15 Nov
2007
15 Nov
'07
7:47 a.m.
"Stefan Dösinger" <stefan(a)codeweavers.com> wrote:
+int CDECL MSVCRT_strcpy_s( char* dst, size_t elem, const char* src ) +{ + unsigned int i; ... + for(i = 0; i < elem; i++)
Since 'i' is used to enumerate [0 < elem] and elem has type size_t, 'i' should have type size_t as well.
+static int (*pstrcpy_s)(char *dst, unsigned int len, const char *src);
But here 'len' has type 'unsigned int' for some reason. -- Dmitry.