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:
parent
5f6b501f21
commit
e87a0e5f69
@ -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)
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user