summaryrefslogtreecommitdiff
path: root/src/strftime.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-06-28 23:28:13 +0000
committerRichard M. Stallman <rms@gnu.org>1997-06-28 23:28:13 +0000
commitfedad0ca9bb7a033521e77fa786f50ea3a2de036 (patch)
tree1720fa27550dae423832b906c23afbb6055c7233 /src/strftime.c
parent9bcee068439b23c1feb1f0f1c35accd7025ee062 (diff)
downloademacs-fedad0ca9bb7a033521e77fa786f50ea3a2de036.tar.gz
automatically generated from GPLed version
Diffstat (limited to 'src/strftime.c')
-rw-r--r--src/strftime.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/strftime.c b/src/strftime.c
index abd039f5b24..a757614e30f 100644
--- a/src/strftime.c
+++ b/src/strftime.c
@@ -176,8 +176,10 @@ localtime_r (t, tp)
#if !defined (memset) && !defined (HAVE_MEMSET) && !defined (_LIBC)
/* Some systems lack the `memset' function and we don't want to
introduce additional dependencies. */
-static const char spaces[16] = " ";
-static const char zeroes[16] = "0000000000000000";
+/* The SGI compiler reportedly barfs on the trailing null
+ if we use a string constant as the initializer. 28 June 1997, rms. */
+static const char spaces[16] = { ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' '} /* " "*/ ;
+static const char zeroes[16] = { '0','0','0','0','0','0','0','0','0','0','0','0','0','0','0','0'} /*"0000000000000000"*/;
# define memset_space(P, Len) \
do { \