]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commit
fix multiple bugs in strreplace
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 6 Apr 2011 20:24:30 +0000 (20:24 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 6 Apr 2011 20:24:30 +0000 (20:24 +0000)
commit4365547c8e4c198fc101125d0403eae1a20b3a82
tree7d61a3ab72aa17bc41d4269c9ddbc310970e355c
parentf802623d71de8ef53d27ed30969c36583216097d
fix multiple bugs in strreplace

bug 1: if search string is empty, an endless loop occurs
bug 2: searching for "foo" in "fo" is actually found, and replaced!

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11034 d7cf8633-e32d-0410-b094-e92efae38249
prvm_cmds.c