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,6 +353,7 @@ static void from_wire(char *name)
l[len] = '.';
}
if (l != name)
*(l-1) = 0;
}