diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-17 10:39:10 +1000 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2010-09-17 10:39:10 +1000 |
commit | c8cd855ab70f1ee1113a4fe1a7c87e2b8fe2db9a (patch) | |
tree | 897901b74736beac1bd6fae36d1fedba5670ab2a /coreutils | |
parent | bfd04f89be0bdfaef60e9bb21b882e77c8590c76 (diff) | |
download | busybox-w32-c8cd855ab70f1ee1113a4fe1a7c87e2b8fe2db9a.tar.gz busybox-w32-c8cd855ab70f1ee1113a4fe1a7c87e2b8fe2db9a.tar.bz2 busybox-w32-c8cd855ab70f1ee1113a4fe1a7c87e2b8fe2db9a.zip |
win32: date: escape literal %e properly
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/date.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/date.c b/coreutils/date.c index c0faf04af..881dcc429 100644 --- a/coreutils/date.c +++ b/coreutils/date.c | |||
@@ -336,7 +336,7 @@ int date_main(int argc UNUSED_PARAM, char **argv) | |||
336 | } | 336 | } |
337 | #if ENABLE_PLATFORM_MINGW32 | 337 | #if ENABLE_PLATFORM_MINGW32 |
338 | if (strstr(fmt_dt2str, "%e")) | 338 | if (strstr(fmt_dt2str, "%e")) |
339 | bb_error_msg_and_die("%e is not supported by Windows strftime"); | 339 | bb_error_msg_and_die("%%e is not supported by Windows strftime"); |
340 | #endif | 340 | #endif |
341 | /* Generate output string */ | 341 | /* Generate output string */ |
342 | strftime(date_buf, sizeof(date_buf), fmt_dt2str, &tm_time); | 342 | strftime(date_buf, sizeof(date_buf), fmt_dt2str, &tm_time); |