From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VfVyb-0005LJ-Cn for mharc-grub-devel@gnu.org; Sun, 10 Nov 2013 09:26:57 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36723) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfVyR-0005L6-0l for grub-devel@gnu.org; Sun, 10 Nov 2013 09:26:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VfVyI-0000Va-Jn for grub-devel@gnu.org; Sun, 10 Nov 2013 09:26:46 -0500 Received: from mail-lb0-x22c.google.com ([2a00:1450:4010:c04::22c]:38244) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfVyI-0000VU-Ax for grub-devel@gnu.org; Sun, 10 Nov 2013 09:26:38 -0500 Received: by mail-lb0-f172.google.com with SMTP id c11so2690588lbj.31 for ; Sun, 10 Nov 2013 06:26:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=FLV67lb/mowylPS14vVsEGJfGbYynVDxnv5wS7kerIg=; b=A1NH/e7D0v+EwyJWp/HmRnt/O0RukrAicXFspFzNgSqdtZtyI/6m/UgrQdDohpdhru lmHoAp2+mjRGONkWGbrm16tiyRfP9HMwtsGpJbbrdX1mNmivkER2wsHowP1CR9TUGSc2 XcPvctHWsx22BFF0lchKyZspGFMu0TDYTu699s4y9A03cvbJIK5OgCW/miebKPVh1AiK /xH92gRX+J/GeMO8+fkeZbvfeQIwmeLAtbt4UfZBxDusluqJTiZdqllX8rCIPUlhwt8S g1gp9jiJTUYtT9fGcN7UeGERtbi7L62iI/If0up2fJz/YWdA/ORh79jHgBBkBeqfcQZF F97Q== X-Received: by 10.152.171.72 with SMTP id as8mr80189lac.33.1384093597245; Sun, 10 Nov 2013 06:26:37 -0800 (PST) Received: from localhost.localdomain (ppp91-76-174-89.pppoe.mtu-net.ru. [91.76.174.89]) by mx.google.com with ESMTPSA id xf2sm7976364lbb.4.2013.11.10.06.26.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Nov 2013 06:26:36 -0800 (PST) From: Andrey Borzenkov To: grub-devel@gnu.org Subject: [PATCH] fix qsort invocation in grub-install Date: Sun, 10 Nov 2013 18:26:24 +0400 Message-Id: <1384093584-19666-1-git-send-email-arvidjaar@gmail.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <527F8B1E.8040303@gmail.com> References: <527F8B1E.8040303@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22c X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Nov 2013 14:26:55 -0000 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)