Fixed loop check
authorRobert Pengelly <robertapengelly@hotmail.com>
Wed, 3 Jun 2026 14:50:39 +0000 (15:50 +0100)
committerRobert Pengelly <robertapengelly@hotmail.com>
Wed, 3 Jun 2026 14:50:39 +0000 (15:50 +0100)
lib.c

diff --git a/lib.c b/lib.c
index 7eb2bb0fabd96949e889cfa402bf26735d4c9563..d833b26db7127911e05f204816856c31513ad4da 100755 (executable)
--- a/lib.c
+++ b/lib.c
@@ -1087,7 +1087,7 @@ FILE *scc_tmpfile (void) {
             name[index] = (j % 26) + 'A';
             index--;
         
-        } while ((j /= 26) >= 26);
+        } while ((j /= 26) > 0);
         
         temp = xstrdup (name);