mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-16 10:49:34 +00:00
Fix off-by-one overwrite.
This commit is contained in:
1 parent
14db4212ab
commit
bd9b3cf55b
1 file changed
+2
-1
+2
-1
@@ -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 */
|
||||
|
||||
Reference in new issue
Block a user