ref: de130303615baffd05af26b8069ba0a588c46bf1
parent: afaf65e56d7dc4da61281c8358bc88bdb773c167
author: Roberto E. Vargas Caballero <[email protected]>
date: Sun Oct 1 08:00:56 EDT 2017
[as] Fix bug related to ';' A ; finishe the current line, but the code was going further and it tried to scan the line.
--- a/as/parser.c
+++ b/as/parser.c
@@ -62,11 +62,12 @@
for (s = begin; ; s++) {
switch (*s) {
+ case ';':
+ *s = '\0';
case '\0':
*oldp = NULL;
goto out_loop;
case '\t':
- case ';':
*s = '\0';
*oldp = s+1;
goto out_loop;