[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] fix qsort invocation in grub-install
From: |
Andrey Borzenkov |
Subject: |
[PATCH] fix qsort invocation in grub-install |
Date: |
Sun, 10 Nov 2013 18:26:24 +0400 |
Order of elements number and size is reversed.
---
util/grub-install.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util/grub-install.c b/util/grub-install.c
index 11010cc..87a0b3b 100644
--- a/util/grub-install.c
+++ b/util/grub-install.c
@@ -560,7 +560,7 @@ device_map_check_duplicates (const char *dev_map)
fclose (fp);
- qsort (d, sizeof (d[0]), filled, (int (*) (const void *, const void
*))strcmp);
+ qsort (d, filled, sizeof (d[0]), (int (*) (const void *, const void
*))strcmp);
for (i = 0; i + 1 < filled; i++)
if (strcmp (d[i], d[i+1]) == 0)
--
tg: (24685ac..) u/install_c-qsort (depends on: phcoder/install_c)