diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-10-14 21:17:04 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-10-14 21:17:04 +0000 |
commit | daa226125cf9570ac726e21fc33d19101123a5c0 (patch) | |
tree | e22d77a8bf41e68b26f3e95b28c0f491ec63847f /time | |
parent | 18b8e054cf34f78f100b74b37e54673730530249 (diff) | |
download | glibc-daa226125cf9570ac726e21fc33d19101123a5c0.tar glibc-daa226125cf9570ac726e21fc33d19101123a5c0.tar.gz glibc-daa226125cf9570ac726e21fc33d19101123a5c0.tar.bz2 glibc-daa226125cf9570ac726e21fc33d19101123a5c0.zip |
* time/asctime.c (asctime_internal): Use __snprintf instead of
snprintf to avoid PLT entry.
Diffstat (limited to 'time')
-rw-r--r-- | time/asctime.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/time/asctime.c b/time/asctime.c index db29dffb2f..dc4fd54f4e 100644 --- a/time/asctime.c +++ b/time/asctime.c @@ -55,13 +55,13 @@ asctime_internal (const struct tm *tp, char *buf, size_t buflen) return NULL; } - int n = snprintf (buf, buflen, format, - (tp->tm_wday < 0 || tp->tm_wday >= 7 ? - "???" : ab_day_name (tp->tm_wday)), - (tp->tm_mon < 0 || tp->tm_mon >= 12 ? - "???" : ab_month_name (tp->tm_mon)), - tp->tm_mday, tp->tm_hour, tp->tm_min, - tp->tm_sec, 1900 + tp->tm_year); + int n = __snprintf (buf, buflen, format, + (tp->tm_wday < 0 || tp->tm_wday >= 7 ? + "???" : ab_day_name (tp->tm_wday)), + (tp->tm_mon < 0 || tp->tm_mon >= 12 ? + "???" : ab_month_name (tp->tm_mon)), + tp->tm_mday, tp->tm_hour, tp->tm_min, + tp->tm_sec, 1900 + tp->tm_year); if (n < 0) return NULL; if (n >= buflen) |