mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
Update.
2000-03-31 Andreas Schwab <schwab@suse.de> * 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.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user