diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2003-04-26 03:26:44 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2003-04-26 03:26:44 +0000 |
commit | c965e63e12aa8355f63a054c6f54ce96b4cafcc4 (patch) | |
tree | 830c02c8807322d09d632e1916c10dea393fd7eb /sbin/routed | |
parent | 4dcea64a20c099e3be4688a2220d8d378707603e (diff) |
strcpy -> strlcpy.
ok dhartmei@ deraadt@ (and tdeval@ with stylistic reservations)
Diffstat (limited to 'sbin/routed')
-rw-r--r-- | sbin/routed/rtquery/rtquery.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/routed/rtquery/rtquery.c b/sbin/routed/rtquery/rtquery.c index 5eb187701c2..38e4ba43473 100644 --- a/sbin/routed/rtquery/rtquery.c +++ b/sbin/routed/rtquery/rtquery.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtquery.c,v 1.13 2003/04/06 00:45:12 deraadt Exp $ */ +/* $OpenBSD: rtquery.c,v 1.14 2003/04/26 03:26:43 krw Exp $ */ /*- * Copyright (c) 1982, 1986, 1993 @@ -201,7 +201,9 @@ main(int argc, char *argv[]) default: goto usage; } - strcpy((char*)OMSG.rip_tracefile, value); + strlcpy((char*)OMSG.rip_tracefile, value, + (char*)&omsg_buf + sizeof omsg_buf - + (char*)OMSG.rip_tracefile); omsg_len += strlen(value) - sizeof(OMSG.ripun); } break; |