The previous code would not allow things like string_sub(str, "\\", "/", 0).
commita5aad760061e21635319a9b5628990cf59b827ed
authorGerald Carter <jerry@samba.org>
Thu, 18 Jul 2002 22:55:48 +0000 (18 22:55 +0000)
committerGerald Carter <jerry@samba.org>
Thu, 18 Jul 2002 22:55:48 +0000 (18 22:55 +0000)
tree61558520bbc368e8bb0b5d003313562e8153dcaa
parente3b3c148208792ac2ccbfd468ad580b1264f9876
The previous code would not allow things like string_sub(str, "\\", "/", 0).
It complained about an overflow of 0 bytes.

Jeremy please check since you modified this last.
source/lib/util_str.c