]> Shamusworld >> Repos - rmac/commitdiff
Fix for bug #181 (goto was never working corectly)
authorggn <ggn.dbug@gmail.com>
Sat, 6 Mar 2021 08:56:03 +0000 (10:56 +0200)
committerShamus Hammons <jlhamm@acm.org>
Wed, 9 Jun 2021 01:20:48 +0000 (20:20 -0500)
token.c

diff --git a/token.c b/token.c
index 5b783a3be2e378e3b787846775e75b6757a027a9..f3cf619a5f41472ac36d9b5db140c4e8afc4f300 100644 (file)
--- a/token.c
+++ b/token.c
@@ -1662,7 +1662,7 @@ int d_goto(WORD unused)
                {
                        // Compare names (sleazo string compare)
                        char * s1 = sym;
-                       char * s2 = defln->line;
+                       char * s2 = defln->line + 1;
 
                        // Either we will match the strings to EOS on both, or we will
                        // match EOS on string 1 to whitespace on string 2. Otherwise, we