Re: [1/6] msvcrt: Implement strcpy_s
15 Nov
2007
15 Nov
'07
1:47 p.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.
6606
Age (days ago)
6606
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov