mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
Make this safe for -DDEVELOPER checks.
Andrew Bartlett
This commit is contained in:
parent
de96c1aaca
commit
39fb77d8c1
@ -179,8 +179,8 @@ void smbw_setshared(const char *name, const char *val)
|
||||
SSVAL(&variables[shared_size], 0, l1);
|
||||
SSVAL(&variables[shared_size], 2, l2);
|
||||
|
||||
pstrcpy(&variables[shared_size] + 4, name);
|
||||
pstrcpy(&variables[shared_size] + 4 + l1, val);
|
||||
safe_strcpy(&variables[shared_size] + 4, name, l1-1);
|
||||
safe_strcpy(&variables[shared_size] + 4 + l1, val, l2-1);
|
||||
|
||||
shared_size += l1+l2+4;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user