diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2004-12-09 21:36:48 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2004-12-09 21:36:48 +0000 |
commit | 0082d4cf57e3ed9d13ff882a95ff0f7d9dd458d4 (patch) | |
tree | 7fd44cf0dafccba9af71f5775c318d686c20f940 | |
parent | fc2eba361ccc55ad5efb2a4cb804cfbb348d8a90 (diff) | |
download | cygnal-0082d4cf57e3ed9d13ff882a95ff0f7d9dd458d4.tar.gz cygnal-0082d4cf57e3ed9d13ff882a95ff0f7d9dd458d4.tar.bz2 cygnal-0082d4cf57e3ed9d13ff882a95ff0f7d9dd458d4.zip |
2004-12-09 Alex Mogilnikov <alx@intellectronika.ru>
* libc/time/tzset_r (_tzset_r): Properly skip over
'/' when it is detected.
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/time/tzset_r.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index bb86b93eb..349cc1eb5 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2004-12-09 Alex Mogilnikov <alx@intellectronika.ru> + + * libc/time/tzset_r (_tzset_r): Properly skip over + '/' when it is detected. + 2004-12-08 Alex Mogilnikov <alx@intellectronika.ru> * libc/time/tzset_r (_tzset_r): Fix loop. diff --git a/newlib/libc/time/tzset_r.c b/newlib/libc/time/tzset_r.c index be121b270..4dec5c778 100644 --- a/newlib/libc/time/tzset_r.c +++ b/newlib/libc/time/tzset_r.c @@ -190,7 +190,7 @@ _DEFUN (_tzset_r, (reent_ptr), n = 0; if (*tzenv == '/') - sscanf (tzenv, "%hu%n:%hu%n:%hu%n", &hh, &n, &mm, &n, &ss, &n); + sscanf (tzenv, "/%hu%n:%hu%n:%hu%n", &hh, &n, &mm, &n, &ss, &n); __tzrule[i].s = ss + SECSPERMIN * mm + SECSPERHOUR * hh; |