diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-03-11 02:32:32 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-03-11 02:32:32 +0000 |
commit | 8524f64196f2ba2661a0869c05109580b10ad62f (patch) | |
tree | dd837bdce198f6e67a7f3c4e305b42704505e992 /sbin/routed/rtquery/rtquery.c | |
parent | 67638b1fc31d9cb577e822fcc385b0a5b6b5f221 (diff) |
strcpy -> strlcpy; Hans-Joerg.Hoexer@yerbouti.franken.de
Diffstat (limited to 'sbin/routed/rtquery/rtquery.c')
-rw-r--r-- | sbin/routed/rtquery/rtquery.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/routed/rtquery/rtquery.c b/sbin/routed/rtquery/rtquery.c index 89a9a91eff3..99e34a931d9 100644 --- a/sbin/routed/rtquery/rtquery.c +++ b/sbin/routed/rtquery/rtquery.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtquery.c,v 1.10 2001/03/08 21:41:49 deraadt Exp $ */ +/* $OpenBSD: rtquery.c,v 1.11 2003/03/11 02:32:31 deraadt Exp $ */ /*- * Copyright (c) 1982, 1986, 1993 @@ -488,7 +488,7 @@ rip_input(struct sockaddr_in *from, name = ""; if (n->n_family == RIP_AF_INET) { in.s_addr = n->n_dst; - (void)strcpy(net_buf, inet_ntoa(in)); + (void)strlcpy(net_buf, inet_ntoa(in), sizeof(net_buf)); mask = ntohl(n->n_mask); dmask = mask & -mask; |