diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-08-25 18:55:07 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2007-08-25 18:55:07 +0000 |
commit | dd3394742b3e2e01f403b1c1b41ed39273b2212e (patch) | |
tree | 5fed86738b0d518989679f3194f896fc9fcebbe2 /string/strfry.c | |
parent | 9b0cdd693e7f54fd35fd58931b940efe6ccb88cd (diff) | |
download | glibc-dd3394742b3e2e01f403b1c1b41ed39273b2212e.tar glibc-dd3394742b3e2e01f403b1c1b41ed39273b2212e.tar.gz glibc-dd3394742b3e2e01f403b1c1b41ed39273b2212e.tar.bz2 glibc-dd3394742b3e2e01f403b1c1b41ed39273b2212e.zip |
Updated to fedora-glibc-20070825T1839
Diffstat (limited to 'string/strfry.c')
-rw-r--r-- | string/strfry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/string/strfry.c b/string/strfry.c index a8b202d176..d392d5526b 100644 --- a/string/strfry.c +++ b/string/strfry.c @@ -42,7 +42,7 @@ strfry (char *string) { int32_t j; __random_r (&rdata, &j); - j = j % len + 1; + j = j % (len - i) + i; char c = string[i]; string[i] = string[j]; |