mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-12 14:20:13 +00:00
Declare STATE as array of char instead of int and do not initialize it (done
by initstate_r). Pass correct size.
This commit is contained in:
parent
fdf113db5a
commit
34092893fc
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user