Commit bd9b3cf5 authored by Simon Kelley's avatar Simon Kelley

Fix off-by-one overwrite.

parent 14db4212
...@@ -353,6 +353,7 @@ static void from_wire(char *name) ...@@ -353,6 +353,7 @@ static void from_wire(char *name)
l[len] = '.'; l[len] = '.';
} }
if (l != name)
*(l-1) = 0; *(l-1) = 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment