strreplace: clean up and simplify
authorH. Peter Anvin <hpa@zytor.com>
Mon, 6 Feb 2012 19:08:45 +0000 (11:08 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 6 Feb 2012 19:08:45 +0000 (11:08 -0800)
commit9fe49d0aab0e6366f38d81b8559c308825f9a4e2
treeeacfb46015ec9992e17192059786886a6a7d3bc0
parentc0c25b4826950162517896c5039c6d62d07115be
strreplace: clean up and simplify

Clean up and simplify strreplace(); in particular there is no need to
call strlen() repeatedly on the same strings.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
com32/lib/strreplace.c