aboutsummaryrefslogtreecommitdiff
path: root/string
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-04-03 07:15:10 +0000
committerUlrich Drepper <drepper@redhat.com>2000-04-03 07:15:10 +0000
commit42ba2c1158d3706164fcf8070ba603bf4484fc4e (patch)
tree87a3a5ac3b74a3e3519503cce16648a3287377bd /string
parent0a63529d383b641b3541692a5df9a996e51cdcb6 (diff)
downloadglibc-42ba2c1158d3706164fcf8070ba603bf4484fc4e.zip
glibc-42ba2c1158d3706164fcf8070ba603bf4484fc4e.tar.gz
glibc-42ba2c1158d3706164fcf8070ba603bf4484fc4e.tar.bz2
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.
Diffstat (limited to 'string')
-rw-r--r--string/strfry.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/string/strfry.c b/string/strfry.c
index c13b3da..11fc503 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;
}