diff options
Diffstat (limited to 'src/libndb')
-rw-r--r-- | src/libndb/sysdnsquery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libndb/sysdnsquery.c b/src/libndb/sysdnsquery.c index b9661be1..0a771e2b 100644 --- a/src/libndb/sysdnsquery.c +++ b/src/libndb/sysdnsquery.c @@ -84,7 +84,7 @@ mkptrname(char *ip, char *rip, int rlen) static void nstrcpy(char *to, char *from, int len) { - strncpy(to, from, len); + strncpy(to, from, len-1); to[len-1] = 0; } |