From 34092893fc07281ed59593f4619e92cd4bc552b0 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 3 Apr 2000 07:15:23 +0000 Subject: [PATCH] Declare STATE as array of char instead of int and do not initialize it (done by initstate_r). Pass correct size. --- string/strfry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }