diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-06-14 14:31:59 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-06-14 14:31:59 +0000 |
commit | aee3f8fb6fbacb4223b1c8ce259e3dd875c85031 (patch) | |
tree | b37b8a50a2bd213bee1bbeb5bd82d2cfbf0da5c7 /newlib/libc/time/strftime.c | |
parent | 25fa7e5ad63d97d00deef1c9eddb346d1134ba72 (diff) | |
download | cygnal-aee3f8fb6fbacb4223b1c8ce259e3dd875c85031.tar.gz cygnal-aee3f8fb6fbacb4223b1c8ce259e3dd875c85031.tar.bz2 cygnal-aee3f8fb6fbacb4223b1c8ce259e3dd875c85031.zip |
* libc/time/asctime_r.c (asctime_r): Replace call to sprintf with call
to siprintf.
* libc/time/strftime.c: Define snprintf to sniprintf in multibyte case.
* libc/time/tzset_r.c: Define sscanf to siscanf.
Diffstat (limited to 'newlib/libc/time/strftime.c')
-rw-r--r-- | newlib/libc/time/strftime.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/time/strftime.c b/newlib/libc/time/strftime.c index 3ab63da1c..f4704b62d 100644 --- a/newlib/libc/time/strftime.c +++ b/newlib/libc/time/strftime.c @@ -285,6 +285,7 @@ the "C" locale settings. # define CQ(a) a /* character constant qualifier */ # define SFLG /* %s flag (null for normal char) */ # define _ctloc(x) (ctloclen = strlen (ctloc = _CurrentTimeLocale->x), ctloc) +# define snprintf sniprintf /* avoid to pull in FP functions. */ # define TOLOWER(c) tolower((int)(unsigned char)(c)) # define STRTOUL(c,p,b) strtoul((c),(p),(b)) # define STRCPY(a,b) strcpy((a),(b)) |