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