From 0008163a30fec920ede228aea2f6e06e75e76514 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 22 Aug 2007 16:04:18 +0000 Subject: * nis/nis_table.c (nis_list): Don't fail if __follow_path returned NIS_NOTFOUND. --- string/strfry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string/strfry.c') diff --git a/string/strfry.c b/string/strfry.c index a8b202d..d392d55 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]; -- cgit v1.1