ref: 8ece231d8bfb0e5682c64f524fedc346171d2e82
parent: e7de0745ad38c7b846394374d08e87715e1291d9
parent: 2f2f14bf808f5f8fe521666d8e1e48abe77b93ae
author: Antonio Niño Díaz <antonio_nd@outlook.com>
date: Sun Mar 10 19:39:29 EDT 2019
Merge pull request #327 from NieDzejkob/symbol-length-check Fix symbol length checking
--- a/src/asm/globlex.c
+++ b/src/asm/globlex.c
@@ -188,7 +188,7 @@
}
}
- if (copied > MAXSYMLEN)
+ if (copied >= MAXSYMLEN)
fatalerror("Symbol too long");
dest[copied] = 0;
@@ -206,7 +206,7 @@
return 0;
}
- strcpy(yylval.tzString, dest);
+ strcpy(yylval.tzSym, dest);
return 1;
}