From 0082d4cf57e3ed9d13ff882a95ff0f7d9dd458d4 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 9 Dec 2004 21:36:48 +0000 Subject: 2004-12-09 Alex Mogilnikov * libc/time/tzset_r (_tzset_r): Properly skip over '/' when it is detected. --- newlib/libc/time/tzset_r.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/libc/time/tzset_r.c') diff --git a/newlib/libc/time/tzset_r.c b/newlib/libc/time/tzset_r.c index be121b2..4dec5c7 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; -- cgit v1.1