From a1d5e2dcefab2130df3161cea6b29e1859388110 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Tue, 17 Apr 2012 09:20:41 -0300 Subject: [PATCH] genex/comp.c (read_tree): correct scanning of names Before this fix, the whitespace following single-character names was included in the name. --- genex/comp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/genex/comp.c b/genex/comp.c index 253b2be..dcc709c 100644 --- a/genex/comp.c +++ b/genex/comp.c @@ -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) {