diff options
author | Vincent Labrecque <vincent@cvs.openbsd.org> | 2003-05-08 19:57:50 +0000 |
---|---|---|
committer | Vincent Labrecque <vincent@cvs.openbsd.org> | 2003-05-08 19:57:50 +0000 |
commit | f940b35d4f2435bd7761e186e78d67bf5df8b44c (patch) | |
tree | ff1112907902382d1a76c91c51768f37edbbf9b8 /usr.sbin | |
parent | f247fbbb4ed571cb92e2f20b364723b21237794b (diff) |
strcpy->strlcpy
ok deraadt
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/afs/src/ydr/output.c | 2 |
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); |