Fix off-by-one overwrite.

This commit is contained in:
Simon Kelley
2014-03-01 16:12:28 +00:00
parent 14db4212ab
commit bd9b3cf55b

View File

@@ -353,7 +353,8 @@ static void from_wire(char *name)
l[len] = '.'; l[len] = '.';
} }
*(l-1) = 0; if (l != name)
*(l-1) = 0;
} }
/* Input in presentation format */ /* Input in presentation format */