summaryrefslogtreecommitdiff
path: root/usr.bin/msgc/msg_sys.def
diff options
context:
space:
mode:
authoritojun <itojun@NetBSD.org>2003-07-14 09:33:08 +0000
committeritojun <itojun@NetBSD.org>2003-07-14 09:33:08 +0000
commit2fe0488981704965d43d2e121e5c90ad5702a3ef (patch)
tree2d3b57e6cba499011b85c95797e1527f10dca7ec /usr.bin/msgc/msg_sys.def
parent02af72a142faec4137ef93c0edb41a2012417f50 (diff)
use bounded string op
Diffstat (limited to 'usr.bin/msgc/msg_sys.def')
-rw-r--r--usr.bin/msgc/msg_sys.def4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/msgc/msg_sys.def b/usr.bin/msgc/msg_sys.def
index c4d7604e843..63f2818e338 100644
--- a/usr.bin/msgc/msg_sys.def
+++ b/usr.bin/msgc/msg_sys.def
@@ -1,4 +1,4 @@
-/* $NetBSD: msg_sys.def,v 1.22 2003/07/07 12:22:35 dsl Exp $ */
+/* $NetBSD: msg_sys.def,v 1.23 2003/07/14 09:34:01 itojun Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -386,7 +386,7 @@ _msg_vprompt(const char *msg, int do_echo, const char *def, char *val,
/* copy the appropriate string to the output */
if (count != 0) {
ibuf[count] = '\0';
- strcpy(val, ibuf); /* size known to be OK */
+ strlcpy(val, ibuf, max_chars);
} else if (def != NULL && val != def) {
strlcpy(val, def, max_chars);
}