1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

fixed a strcat noticed by metze

(This used to be commit 533fe94db9)
This commit is contained in:
Andrew Tridgell 2003-03-12 21:02:45 +00:00
parent a03a4db8ae
commit a412ed39de

View File

@ -2870,7 +2870,7 @@ BOOL lp_do_parameter(int snum, const char *pszParmName, const char *pszParmValue
pstr_sprintf(vfskey, "%s:%s:",
(snum >= 0) ? lp_servicename(snum) : "global", pszParmName);
slen = strlen(vfskey);
safe_strcat(vfskey, sep+1, sizeof(pstring));
pstrcat(vfskey, sep+1);
trim_string(vfskey+slen, " ", " ");
paramo = smb_xmalloc(sizeof(param_opt_struct));
paramo->key = strdup(vfskey);