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

View File

@ -51,7 +51,7 @@ next:
}
break;
}
for (p = e = s--; *p && *p != '#' && *p != '\n'; p++)
for (p = e = --s; *p && *p != '#' && *p != '\n'; p++)
if (*p != ' ' && *p != '\t')
e = p;
if (!last && n) {