diff options
| author | Joerg Wunsch <joerg@FreeBSD.org> | 1996-12-12 21:21:11 +0000 |
|---|---|---|
| committer | Joerg Wunsch <joerg@FreeBSD.org> | 1996-12-12 21:21:11 +0000 |
| commit | 4d224b7f55f13c1ce9479a803e50ce14e118f46e (patch) | |
| tree | d7f7641da37673324d9da97f2333163116896017 /lib/libc/net/ascii2addr.c | |
| parent | 40e60c63b3b43c53b55929b93300220efeaea3ae (diff) | |
Notes
Diffstat (limited to 'lib/libc/net/ascii2addr.c')
| -rw-r--r-- | lib/libc/net/ascii2addr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/ascii2addr.c b/lib/libc/net/ascii2addr.c index 27d62459052d..415d07de7861 100644 --- a/lib/libc/net/ascii2addr.c +++ b/lib/libc/net/ascii2addr.c @@ -51,7 +51,7 @@ ascii2addr(af, ascii, result) switch(af) { case AF_INET: ina = result; - strncat(strbuf, ascii, (sizeof strbuf)-1); + strncpy(strbuf, ascii, (sizeof strbuf)-1); if (inet_aton(strbuf, ina)) return sizeof(struct in_addr); errno = EINVAL; |
