summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtchang%redhat.com <devnull@localhost>2006-04-11 20:06:08 +0000
committerwtchang%redhat.com <devnull@localhost>2006-04-11 20:06:08 +0000
commit248edb0e521916e690b09791abeda9b67be35321 (patch)
tree35ae6c7089932a520227bd20cbfacba6154bc37e
parentdb4325380371d3f959c6c7b2c9d1237a49e5b6bd (diff)
downloadnspr-hg-248edb0e521916e690b09791abeda9b67be35321.tar.gz
Bugzilla bug 247896 and bug 331216: fixed the bug that 'end' was moved one
character too far when parsing the minutes, and simplified the code. r=timeless,darin. Tag: MOZILLA_1_8_BRANCH
-rw-r--r--pr/src/misc/prtime.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/pr/src/misc/prtime.c b/pr/src/misc/prtime.c
index a3cd1c6e..cf5554b2 100644
--- a/pr/src/misc/prtime.c
+++ b/pr/src/misc/prtime.c
@@ -1242,13 +1242,9 @@ PR_ParseTimeString(
else
tmp_hour = (rest[0]-'0');
- while (*rest && *rest != ':')
- rest++;
- rest++;
-
/* move over the colon, and parse minutes */
- end = rest + 1;
+ rest = ++end;
while (*end >= '0' && *end <= '9')
end++;