# HG changeset patch # User Richard M. Stallman # Date 867540493 0 # Node ID 47be751da08b33d5e2c317ed068247bd849f2526 # Parent 83ff1ecdb0e3d807fbbe0e8f832c872bcbd5e302 automatically generated from GPLed version diff -r 83ff1ecdb0e3 -r 47be751da08b src/strftime.c --- 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 { \