summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib
diff options
context:
space:
mode:
author Aaron Giles <aaron@aarongiles.com>2008-05-29 09:25:51 +0000
committer Aaron Giles <aaron@aarongiles.com>2008-05-29 09:25:51 +0000
commitc852c42952d4abd285b29dabf3eaaea296808125 (patch)
treedf01cdea12084da4820a156cdc920357a2b315b4 /src/lib
parent7247ecbce25e9d3ab9a6cca7131c08688fe52560 (diff)
Cleanups for 0.125u3.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/util/astring.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/util/astring.c b/src/lib/util/astring.c
index 9f47108804f..5c59b5e9fb8 100644
--- a/src/lib/util/astring.c
+++ b/src/lib/util/astring.c
@@ -523,8 +523,8 @@ int astring_findc(const astring *str, int start, const char *search)
/*-------------------------------------------------
- astring_replace - search in an astring for
- another astring, replacing all instances with
+ astring_replace - search in an astring for
+ another astring, replacing all instances with
a third and returning the number of matches
-------------------------------------------------*/
@@ -535,8 +535,8 @@ int astring_replace(astring *str, int start, const astring *search, const astrin
/*-------------------------------------------------
- astring_replacec - search in an astring for a
- C string, replacing all instances with another
+ astring_replacec - search in an astring for a
+ C string, replacing all instances with another
C string and returning the number of matches
-------------------------------------------------*/
@@ -546,7 +546,7 @@ int astring_replacec(astring *str, int start, const char *search, const char *re
int replacelen = strlen(replace);
int matches = 0;
int curindex;
-
+
for (curindex = astring_findc(str, start, search); curindex != -1; curindex = astring_findc(str, curindex + replacelen, search))
{
matches++;