diff options
| author | Joerg Wunsch <joerg@FreeBSD.org> | 1996-12-12 21:22:59 +0000 |
|---|---|---|
| committer | Joerg Wunsch <joerg@FreeBSD.org> | 1996-12-12 21:22:59 +0000 |
| commit | f94c70c905498896db1d59a341dc16bbaa01cb8f (patch) | |
| tree | 29726a9f46d466eb94d5e6e104f8546b0f2043a8 | |
| parent | 861b05e390a915e093b8b0981dfbbad6d3dfeba0 (diff) | |
Notes
| -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; |
