summaryrefslogtreecommitdiff
path: root/usr.bin/mail/list.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-11-21 20:41:57 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-11-21 20:41:57 +0000
commitc24e90e0637476fbd9d6983cfb62b935af4c7d97 (patch)
tree6aa744dff04bf458c68ddd45a9ef889f3086688e /usr.bin/mail/list.c
parent9e53048fff7853801448fee927bc5bae4c8b4a91 (diff)
o kill strcpy()
o check return values of malloc and friends o use strdup() when sensible
Diffstat (limited to 'usr.bin/mail/list.c')
-rw-r--r--usr.bin/mail/list.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/mail/list.c b/usr.bin/mail/list.c
index 04375fb28d4..9b0fcccdc2e 100644
--- a/usr.bin/mail/list.c
+++ b/usr.bin/mail/list.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: list.c,v 1.11 2001/11/21 15:26:39 millert Exp $ */
+/* $OpenBSD: list.c,v 1.12 2001/11/21 20:41:55 millert Exp $ */
/* $NetBSD: list.c,v 1.7 1997/07/09 05:23:36 mikel Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static const char sccsid[] = "@(#)list.c 8.4 (Berkeley) 5/1/95";
#else
-static const char rcsid[] = "$OpenBSD: list.c,v 1.11 2001/11/21 15:26:39 millert Exp $";
+static const char rcsid[] = "$OpenBSD: list.c,v 1.12 2001/11/21 20:41:55 millert Exp $";
#endif
#endif /* not lint */
@@ -513,7 +513,7 @@ scan(char **sp)
int quotec;
if (regretp >= 0) {
- strcpy(lexstring, string_stack[regretp]);
+ strlcpy(lexstring, string_stack[regretp], STRINGLEN);
lexnumber = numberstack[regretp];
return(regretstack[regretp--]);
}