1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-01 10:06:57 +03:00
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:
Ulrich Drepper
2000-04-03 07:15:10 +00:00
parent 0a63529d38
commit 42ba2c1158
3 changed files with 11 additions and 3 deletions

View File

@ -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;
}