1
0
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 used to be commit 39fb77d8c1)
This commit is contained in:
Andrew Bartlett 2003-04-23 10:06:00 +00:00
parent 9265628c20
commit 95af8e27b1

View File

@ -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;