diff options
Diffstat (limited to 'coreutils/date.c')
-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 767e0d4a2..7965775fe 100644 --- a/coreutils/date.c +++ b/coreutils/date.c | |||
@@ -373,7 +373,7 @@ int date_main(int argc UNUSED_PARAM, char **argv) | |||
373 | date_buf[0] = '\0'; | 373 | date_buf[0] = '\0'; |
374 | } else { | 374 | } else { |
375 | /* Handle special conversions */ | 375 | /* Handle special conversions */ |
376 | if (strncmp(fmt_dt2str, "%f", 2) == 0) { | 376 | if (is_prefixed_with(fmt_dt2str, "%f")) { |
377 | fmt_dt2str = (char*)"%Y.%m.%d-%H:%M:%S"; | 377 | fmt_dt2str = (char*)"%Y.%m.%d-%H:%M:%S"; |
378 | } | 378 | } |
379 | /* Generate output string */ | 379 | /* Generate output string */ |