1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

r24157: Merge from kai/samba4-gsoc.git;h=728deba680f8cf85cab168a6278a2cf657f65fdb

Make WBSRV_SAMBA3_SET_STRING use safe_strcpy instead of strncpy.
(This used to be commit 6b92b816fc70278d83d23f835275acf5f227dd74)
This commit is contained in:
Kai Blin 2007-08-03 13:51:12 +00:00 committed by Gerald (Jerry) Carter
parent 5f6b501f21
commit e87a0e5f69

View File

@ -103,7 +103,7 @@ struct wbsrv_connection {
};
#define WBSRV_SAMBA3_SET_STRING(dest, src) do { \
strncpy(dest, src, sizeof(dest)-1);\
safe_strcpy(dest, src, sizeof(dest)-1);\
} while(0)
/*