diff options
author | Hans Insulander <hin@cvs.openbsd.org> | 2003-04-03 12:07:25 +0000 |
---|---|---|
committer | Hans Insulander <hin@cvs.openbsd.org> | 2003-04-03 12:07:25 +0000 |
commit | a8438631d0c834d48a9f34d2946de6229910c9a5 (patch) | |
tree | efb8d0d54ab3d27822d5eaf529d2fbe8388d3362 /lib | |
parent | 448414f170f311452f7117c6fdee8addb9964a55 (diff) |
strcpy -> strlcpy
ok millert@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcom_err/error_message.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcom_err/error_message.c b/lib/libcom_err/error_message.c index 2a8bd672e8b..91f7ae28ebc 100644 --- a/lib/libcom_err/error_message.c +++ b/lib/libcom_err/error_message.c @@ -1,4 +1,4 @@ -/* $OpenBSD: error_message.c,v 1.3 1996/12/14 06:55:56 tholo Exp $ */ +/* $OpenBSD: error_message.c,v 1.4 2003/04/03 12:07:24 hin Exp $ */ /*- * Copyright 1987, 1988 by the Student Information Processing Board @@ -24,7 +24,7 @@ #ifndef lint static const char rcsid[] = - "$OpenBSD: error_message.c,v 1.3 1996/12/14 06:55:56 tholo Exp $"; + "$OpenBSD: error_message.c,v 1.4 2003/04/03 12:07:24 hin Exp $"; static const char copyright[] = "Copyright 1986, 1987, 1988 by the Student Information Processing Board\nand the department of Information Systems\nof the Massachusetts Institute of Technology"; #endif @@ -68,7 +68,7 @@ error_message (code) } } oops: - strcpy (buffer, "Unknown code "); + strlcpy (buffer, "Unknown code ", sizeof(buffer)); if (table_num) { strcat (buffer, error_table_name (table_num)); strcat (buffer, " "); |