ref: 187f88aa50f253eb670cdc415e9bc315ca289bb6
parent: caddd61f178307b746ee6cb4ed47834ddca68dc3
author: ISSOtm <[email protected]>
date: Thu Mar 26 19:10:51 EDT 2020
Only copy necessary characters for bare labels
--- a/src/asm/asmy.y
+++ b/src/asm/asmy.y
@@ -669,8 +669,11 @@
scoped_label_bare : T_LABEL {
warning(WARNING_OBSOLETE, "Non-local labels without a colon are deprecated");
+ strcpy($$, $1);
}
- | T_LOCAL_ID
+ | T_LOCAL_ID {
+ strcpy($$, $1);
+ }
;
scoped_label : T_LABEL ':' {
strcpy($$, $1);