From f940b35d4f2435bd7761e186e78d67bf5df8b44c Mon Sep 17 00:00:00 2001 From: Vincent Labrecque Date: Thu, 8 May 2003 19:57:50 +0000 Subject: strcpy->strlcpy ok deraadt --- usr.sbin/afs/src/ydr/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin') 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); -- cgit v1.2.3