From faab23b9b9c1ae51d5218debf27d1dfb9a138e87 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 9 Aug 2010 13:33:17 +0200 Subject: [PATCH] cfdisk: fix n+1 again Reported-by: J B Signed-off-by: Karel Zak --- fdisk/cfdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fdisk/cfdisk.c b/fdisk/cfdisk.c index 610b8471..8801a851 100644 --- a/fdisk/cfdisk.c +++ b/fdisk/cfdisk.c @@ -1659,7 +1659,7 @@ fill_p_info(void) { bs, 1, &errmsg)) { char *bad = _("Bad logical partition"); char *msg = (char *) xmalloc(strlen(bad) + strlen(errmsg) + 30); - sprintf(msg, "%s %d: %s", bad, i + 1, errmsg); + sprintf(msg, "%s %d: %s", bad, i, errmsg); fatal(msg, 4); } } -- 2.39.5