From 96347bb4420f298ceec72fe26b89b84433267abb Mon Sep 17 00:00:00 2001 From: bert Date: Sun, 8 Jan 2017 21:33:36 +0100 Subject: [PATCH] misc.c: correction in AttributeRemoveFromList(). Closes-bug: https://bugs.launchpad.net/pcb/+bug/1654821 Signed-off-by: bert --- src/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc.c b/src/misc.c index ef1323d848..b8de44cc67 100644 --- a/src/misc.c +++ b/src/misc.c @@ -2615,7 +2615,7 @@ AttributeRemoveFromList(AttributeListType *list, char *name) { free (list->List[i].name); free (list->List[i].value); - for (j=i; jNumber-i; j++) + for (j=i; jNumber-1; j++) list->List[j] = list->List[j+1]; list->Number --; } -- 2.11.4.GIT