fixed a strcat noticed by metze
authorAndrew Tridgell <tridge@samba.org>
Wed, 12 Mar 2003 21:02:45 +0000 (21:02 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 12 Mar 2003 21:02:45 +0000 (21:02 +0000)
(This used to be commit 533fe94db95fbb819b35251d9832c925584b7eca)

source3/param/loadparm.c

index 27e02c1685d1367baf2eeddd519e59a67cf445bb..3ff6b3e22f4765085ced42a3e433c6c422d90697 100644 (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);