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

source3/param/loadparm.c

index c21b88ff20d854a1ffcea3cc4ecc5fe6a344ad81..3878dabb60a544b9352c3615a4bf2e925f4c542b 100644 (file)
@@ -3095,7 +3095,7 @@ BOOL lp_do_parameter(int snum, const char *pszParmName, const char *pszParmValue
                        ZERO_STRUCT(vfskey);
                        pstr_sprintf(vfskey, "%s:", pszParmName);
                        slen = strlen(vfskey);
-                       safe_strcat(vfskey, sep+1, sizeof(pstring));
+                       pstrcat(vfskey, sep+1);
                        trim_string(vfskey+slen, " ", " ");
                        not_added = True;
                        data = (snum < 0) ? Globals.param_opt :