mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-28 03:27:46 +08:00
2004-12-09 Alex Mogilnikov <alx@intellectronika.ru>
* libc/time/tzset_r (_tzset_r): Properly skip over '/' when it is detected.
This commit is contained in:
parent
fc2eba361c
commit
0082d4cf57
@ -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>
|
2004-12-08 Alex Mogilnikov <alx@intellectronika.ru>
|
||||||
|
|
||||||
* libc/time/tzset_r (_tzset_r): Fix loop.
|
* libc/time/tzset_r (_tzset_r): Fix loop.
|
||||||
|
@ -190,7 +190,7 @@ _DEFUN (_tzset_r, (reent_ptr),
|
|||||||
n = 0;
|
n = 0;
|
||||||
|
|
||||||
if (*tzenv == '/')
|
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;
|
__tzrule[i].s = ss + SECSPERMIN * mm + SECSPERHOUR * hh;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user