Fix off-by-one overwrite.

This commit is contained in:
Simon Kelley committed 2014-03-01 16:12:28 +00:00
1 parent 14db4212ab
commit bd9b3cf55b
1 file changed
+2 -1
+2 -1
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 */