Commit bd9b3cf5 authored by Simon Kelley's avatar Simon Kelley

Fix off-by-one overwrite.

parent 14db4212
......@@ -353,7 +353,8 @@ static void from_wire(char *name)
l[len] = '.';
}
*(l-1) = 0;
if (l != name)
*(l-1) = 0;
}
/* Input in presentation format */
......
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