diff options
author | 2003-05-08 19:57:49 +0000 | |
---|---|---|
committer | 2003-05-08 19:57:49 +0000 | |
commit | 50a88646ba7c24f015820184ca1c7febf6e3c612 (patch) | |
tree | 283e60046d6c2c36faf8516d4cff980c8cb52419 | |
parent | NUL-terminate the buffer returned by readlink() before we use it to Strlcpy() (diff) | |
download | wireguard-openbsd-50a88646ba7c24f015820184ca1c7febf6e3c612.tar.xz wireguard-openbsd-50a88646ba7c24f015820184ca1c7febf6e3c612.zip |
strcpy->strlcpy
ok deraadt
-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); |