From: Richard M. Stallman Date: Sat, 28 Jun 1997 23:28:13 +0000 (+0000) Subject: automatically generated from GPLed version X-Git-Tag: emacs-20.1~1459 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c72e6644d735a706fba0d14a90884ff1724eada0;p=emacs.git automatically generated from GPLed version --- 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 { \