changeset 18487:47be751da08b

automatically generated from GPLed version
author Richard M. Stallman <rms@gnu.org>
date Sat, 28 Jun 1997 23:28:13 +0000
parents 83ff1ecdb0e3
children 3a7fb597e8a8
files src/strftime.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/strftime.c	Sat Jun 28 21:27:18 1997 +0000
+++ b/src/strftime.c	Sat Jun 28 23:28:13 1997 +0000
@@ -176,8 +176,10 @@
 #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 {									      \