summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorVincent Labrecque <vincent@cvs.openbsd.org>2003-05-08 19:57:50 +0000
committerVincent Labrecque <vincent@cvs.openbsd.org>2003-05-08 19:57:50 +0000
commitf940b35d4f2435bd7761e186e78d67bf5df8b44c (patch)
treeff1112907902382d1a76c91c51768f37edbbf9b8 /usr.sbin
parentf247fbbb4ed571cb92e2f20b364723b21237794b (diff)
strcpy->strlcpy
ok deraadt
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/afs/src/ydr/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/afs/src/ydr/output.c b/usr.sbin/afs/src/ydr/output.c
index bcf1bec2195..c5d4749ab47 100644
--- a/usr.sbin/afs/src/ydr/output.c
+++ b/usr.sbin/afs/src/ydr/output.c
@@ -182,7 +182,7 @@ print_type (char *name, Type *type, enum argtype argtype,
else
fprintf (f, "unsigned %s", "len");
fprintf (f, ";\n");
- strcpy(s + strlen(s) - 3, "val");
+ strlcpy(s + strlen(s) - 3, "val", len - strlen(s) + 3);
print_type ("*val", type->subtype, argtype, decl, f);
fprintf (f, ";\n} %s", name);
free(s);