Copy the 3.2 version of string_replace to 3.0
authorVolker Lendecke <vl@samba.org>
Tue, 22 Jan 2008 10:54:31 +0000 (11:54 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 22 Jan 2008 10:59:09 +0000 (11:59 +0100)
commitdb905d9c4248c0051266ef0995dce077c1a33dd3
treeb7277132673a15e2fda83417bf6099a986ba8789
parent7ff5a123b4fd80d66da92f34062174573a4f9725
Copy the 3.2 version of string_replace to 3.0

There are several callers in 3.0 that don't give a pstring to string_replace,
thus it will end up in segfaults like the one reported by Sergio Pires
<suporte@grupovdl.com.br> on samba@samba.org. The 3.2 version of string_replace
does not have the pstring assumption anymore.

Jeremy, Jerry, please check!

Thanks,

Volker
source/lib/util_str.c