Commit 605d6b28 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(isc_getipnum): Fixed error introduced in last commit.

parent 024138a6
......@@ -179,7 +179,7 @@ char *isc_getipnum(IscAddress *ia, char *buf, int len)
addr = (struct sockaddr_in *) &ia->ip.saddr;
strncpy(buf, inet_ntoa(addr->sin_addr), len-1);
buf[len] = '\0';
buf[len-1] = '\0';
return buf;
Supports Markdown
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