Define strncpy to an error to make sure it doesn't creep back in.

oldstable
Alexandre Julliard 2005-04-25 16:23:32 +00:00
parent 40b7a50f8e
commit f2ad8e3121
1 changed files with 4 additions and 0 deletions

View File

@ -2065,6 +2065,10 @@ extern inline LPSTR WINAPI lstrcatA( LPSTR dst, LPCSTR src )
return strcat( dst, src );
}
/* strncpy doesn't do what you think, don't use it */
#undef strncpy
#define strncpy(d,s,n) error do_not_use_strncpy_use_lstrcpynA_or_memcpy_instead
#endif /* !defined(WINE_NO_INLINE_STRING) && defined(__WINESRC__) */
#define lstrcat WINELIB_NAME_AW(lstrcat)