From daa226125cf9570ac726e21fc33d19101123a5c0 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 14 Oct 2005 21:17:04 +0000 Subject: [PATCH] * time/asctime.c (asctime_internal): Use __snprintf instead of snprintf to avoid PLT entry. --- ChangeLog | 3 +++ localedata/ChangeLog | 6 ++++++ time/asctime.c | 14 +++++++------- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9f7733c..5276aba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-10-14 Ulrich Drepper + * time/asctime.c (asctime_internal): Use __snprintf instead of + snprintf to avoid PLT entry. + * sysdeps/unix/opendir.c (__opendir): Pass extra argument to __alloc_dir. (__alloc_dir): Only close descriptor on error if new parameter is true. diff --git a/localedata/ChangeLog b/localedata/ChangeLog index 8cf2809..98380b5 100644 --- a/localedata/ChangeLog +++ b/localedata/ChangeLog @@ -1,5 +1,11 @@ 2005-10-14 Ulrich Drepper + [BZ #195] + * locales/hu_HU: Add some transliterations. + + [BZ #1429] + * locales/hu_HU: Define week. + [BZ #982] * locales/ml_IN: Fix title. diff --git a/time/asctime.c b/time/asctime.c index db29dff..dc4fd54 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) -- 2.7.4