From: Karel Zak Date: Mon, 9 Aug 2010 11:33:17 +0000 (+0200) Subject: cfdisk: fix n+1 again X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=faab23b9b9c1ae51d5218debf27d1dfb9a138e87;p=util-linux cfdisk: fix n+1 again Reported-by: J B Signed-off-by: Karel Zak --- 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); } }