aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ghdl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ghdl.cc b/src/ghdl.cc
index 2ddab7d..05b319e 100644
--- a/src/ghdl.cc
+++ b/src/ghdl.cc
@@ -48,7 +48,7 @@ static std::string user_to_str(Name_Id id)
char c = s[len];
if (c == 0)
break;
- if (c == '\\' && s[len + 1] == 0 && len > 2)
+ if (c == '\\' && s[len + 1] == 0 && len > 1)
break;
if (!((c >= 'a' && c <= 'z')
|| (c >= 'A' && c <= 'Z')