diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-07 21:13:55 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-04-07 21:13:55 +0000 |
commit | 05325cbf2cd782c5388d92a0023e6ec0b1292641 (patch) | |
tree | 6f33c59185acb04605fe514c61eb613674481da1 /usr.bin/ul | |
parent | b236858cae71da07b39c9bf332ce1b65fde49767 (diff) |
replace strcpy calls that got inlined by gcc; Hans-Joerg.Hoexer@yerbouti.franken.de
Diffstat (limited to 'usr.bin/ul')
-rw-r--r-- | usr.bin/ul/ul.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/ul/ul.c b/usr.bin/ul/ul.c index 8da3a1dc3c9..13364fe981e 100644 --- a/usr.bin/ul/ul.c +++ b/usr.bin/ul/ul.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ul.c,v 1.7 2001/11/19 19:02:17 mpech Exp $ */ +/* $OpenBSD: ul.c,v 1.8 2003/04/07 21:13:54 deraadt Exp $ */ /* $NetBSD: ul.c,v 1.3 1994/12/07 00:28:24 jtc Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)ul.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: ul.c,v 1.7 2001/11/19 19:02:17 mpech Exp $"; +static char rcsid[] = "$OpenBSD: ul.c,v 1.8 2003/04/07 21:13:54 deraadt Exp $"; #endif /* not lint */ #include <stdio.h> @@ -149,7 +149,8 @@ main(argc, argv) case 0: /* No such terminal type - assume dumb */ - (void)strcpy(termcap, "dumb:os:col#80:cr=^M:sf=^J:am:"); + (void)strlcpy(termcap, "dumb:os:col#80:cr=^M:sf=^J:am:", + sizeof termcap); break; } initcap(); |