From e1e083d584595887f4a8339a4b251cb44f9293fe Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Thu, 16 Oct 2008 13:51:45 +0000 Subject: [PATCH] * added skipping of '0'-modified supported by glibc (formats are padded with zeros anyway) this fixes creation of unique file names in Beam under haiku git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28170 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/libroot/posix/time/strftime.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/system/libroot/posix/time/strftime.c b/src/system/libroot/posix/time/strftime.c index e6ca193810..cf86bdc79e 100644 --- a/src/system/libroot/posix/time/strftime.c +++ b/src/system/libroot/posix/time/strftime.c @@ -176,6 +176,9 @@ label: case '\0': --format; break; + case '0': + // ignore '0'-modifier supported by glibc for compatibility + goto label; case 'A': pt = _add((t->tm_wday < 0 || t->tm_wday >= DAYSPERWEEK) ?