From 42ba2c1158d3706164fcf8070ba603bf4484fc4e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 3 Apr 2000 07:15:10 +0000 Subject: Update. 2000-03-31 Andreas Schwab * string/strfry.c: Declare STATE as array of char instead of int and do not initialize it (done by initstate_r). Pass correct size. * sysdeps/generic/ldsodefs.h: Fix typo in comment. --- string/strfry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'string') diff --git a/string/strfry.c b/string/strfry.c index c13b3da979..11fc503bb9 100644 --- a/string/strfry.c +++ b/string/strfry.c @@ -29,9 +29,9 @@ strfry (char *string) if (!init) { - static int state[8] = { 1, 2, 3, 4, 5, 6, 7, 8 }; + static char state[32]; rdata.state = NULL; - __initstate_r (time ((time_t *) NULL), state, 8, &rdata); + __initstate_r (time ((time_t *) NULL), state, sizeof (state), &rdata); init = 1; } -- cgit v1.2.3