openbsd-ports/archivers/zoo/patches/patch-parse_c
pvalchev 673ecfb881 fix several buffer overflows/issues from gentoo/fedora, brought up
by Rui Reis <rui@rui.cx>.  more exist for sure...
2006-04-07 23:14:13 +00:00

13 lines
411 B
Plaintext

$OpenBSD: patch-parse_c,v 1.1 2006/04/07 23:14:13 pvalchev Exp $
--- parse.c.orig Tue Jul 16 09:54:43 1991
+++ parse.c Fri Apr 7 01:37:24 2006
@@ -39,7 +39,7 @@ char *fname;
char *namep; /* points to relevant part of tempname */
char *p;
- strcpy (tempname, fname);
+ strlcpy(tempname, fname, LFNAMESIZE);
#ifdef DEBUG
printf ("parse: supplied name is [%s].\n", tempname);