Define strncpy to an error to make sure it doesn't creep back in.
This commit is contained in:
parent
40b7a50f8e
commit
f2ad8e3121
|
@ -2065,6 +2065,10 @@ extern inline LPSTR WINAPI lstrcatA( LPSTR dst, LPCSTR src )
|
||||||
return strcat( dst, 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__) */
|
#endif /* !defined(WINE_NO_INLINE_STRING) && defined(__WINESRC__) */
|
||||||
|
|
||||||
#define lstrcat WINELIB_NAME_AW(lstrcat)
|
#define lstrcat WINELIB_NAME_AW(lstrcat)
|
||||||
|
|
Loading…
Reference in New Issue