From e56c89b5e85f565e03818abc4fa5354bdf473dee Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sat, 27 Sep 2008 22:13:17 +0200 Subject: [s3]loadparm: in lp_do_parameter() use function lp_local_ptr() instead of hard coded calculation. Michael --- source3/param/loadparm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index dc7026268b..025e3e92ad 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -7222,9 +7222,7 @@ bool lp_do_parameter(int snum, const char *pszParmName, const char *pszParmValue pszParmName)); return (True); } - parm_ptr = - ((char *)ServicePtrs[snum]) + PTR_DIFF(def_ptr, - &sDefault); + parm_ptr = lp_local_ptr(snum, def_ptr); } if (snum >= 0) { -- cgit