1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-17 21:03:43 +02: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:
Werner Almesberger 2012-04-17 09:20:41 -03:00
parent 8eb3e88385
commit a1d5e2dcef

View File

@ -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) {