]> 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)
committerRudolf Polzer <divverent@alientrap.org>
Wed, 6 Apr 2011 20:26:01 +0000 (22:26 +0200)
commitff7440e99440519346b9f5854a836931b557f429
tree7d61a3ab72aa17bc41d4269c9ddbc310970e355c
parent5e575ab7f758e5b90ec8adc82d0464e9c6655836
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
::stable-branch::merge=4365547c8e4c198fc101125d0403eae1a20b3a82
prvm_cmds.c