pkgsrc/archivers/zoo/patches/patch-aj

13 lines
387 B
Text

$NetBSD: patch-aj,v 1.2 2009/04/25 23:46:47 gdt Exp $
--- parse.c.orig 1991-07-16 17:54:43.000000000 +0200
+++ parse.c
@@ -39,7 +39,7 @@ char *fname;
char *namep; /* points to relevant part of tempname */
char *p;
- strcpy (tempname, fname);
+ strncpy(tempname, fname, LFNAMESIZE);
#ifdef DEBUG
printf ("parse: supplied name is [%s].\n", tempname);