diff options
-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); |