mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2025-04-21 12:27:27 +03:00
genex/comp.c (read_tree): correct scanning of names
Before this fix, the whitespace following single-character names was included in the name.
This commit is contained in:
@@ -51,7 +51,7 @@ next:
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
for (p = e = s--; *p && *p != '#' && *p != '\n'; p++)
|
for (p = e = --s; *p && *p != '#' && *p != '\n'; p++)
|
||||||
if (*p != ' ' && *p != '\t')
|
if (*p != ' ' && *p != '\t')
|
||||||
e = p;
|
e = p;
|
||||||
if (!last && n) {
|
if (!last && n) {
|
||||||
|
|||||||
Reference in New Issue
Block a user