From 70d2d9e50fd47d07445410e18e976393b8237c5b Mon Sep 17 00:00:00 2001 From: uz Date: Tue, 4 Aug 2009 19:22:15 +0000 Subject: [PATCH] Fixed an off-by-one bug git-svn-id: svn://svn.cc65.org/cc65/trunk@3993 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- src/cc65/asmlabel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc65/asmlabel.c b/src/cc65/asmlabel.c index 6ae60b1f4..216541b11 100644 --- a/src/cc65/asmlabel.c +++ b/src/cc65/asmlabel.c @@ -89,7 +89,7 @@ int IsLocalLabelName (const char* Name) if (Name[0] != 'L' || strlen (Name) != 5) { return 0; } - for (I = 1; I <= 5; ++I) { + for (I = 1; I <= 4; ++I) { if (!IsXDigit (Name[I])) { return 0; } -- 2.39.5