openbsd-ports/net/netatalk/patches/patch-etc_papd_printcap_c
pvalchev 69e49a8551 Update to netatalk-2.0.3 and get rid of old directory structure.
A long due update with important features such as long filenames,
unicode, etc.
From new maintainer "Arnaud Bergeron" <abergeron@gmail.com>
2006-09-22 05:54:33 +00:00

13 lines
422 B
Plaintext

$OpenBSD: patch-etc_papd_printcap_c,v 1.1 2006/09/22 05:56:25 pvalchev Exp $
--- etc/papd/printcap.c.orig Fri Jun 18 03:56:04 2004
+++ etc/papd/printcap.c Sat Dec 31 13:04:13 2005
@@ -289,7 +289,7 @@ int tnchktc( cap )
/* p now points to beginning of last field */
if (p[0] != 't' || p[1] != 'c')
return(1);
- strcpy(tcname,p+3);
+ strlcpy(tcname,p+3,sizeof(tcname));
q = tcname;
while (q && *q != ':')
q++;