openbsd-ports/sysutils/cfengine/patches/patch-src_crypto_c
sturm f6bb42b4ff update to cfengine 2.2.1
simplify port drastically by removing str* patches, these might be
revived one day as an external patch

no objections from maintainer
2007-10-12 20:12:18 +00:00

13 lines
515 B
Plaintext

$OpenBSD: patch-src_crypto_c,v 1.4 2007/10/12 20:12:19 sturm Exp $
--- src/crypto.c.orig Mon Jul 10 13:53:47 2006
+++ src/crypto.c Sun Sep 2 15:44:05 2007
@@ -294,7 +294,7 @@ snprintf(buffer,CF_BUFSIZE,"%d%d%25s",(int)CFSTARTTIME
EVP_DigestUpdate(&context,buffer,CF_BUFSIZE);
-snprintf(pscomm,CF_BUFSIZE,"%s %s",VPSCOMM[VSYSTEMHARDCLASS],VPSOPTS[VSYSTEMHARDCLASS]);
+snprintf(pscomm,CF_MAXLINKSIZE,"%s %s",VPSCOMM[VSYSTEMHARDCLASS],VPSOPTS[VSYSTEMHARDCLASS]);
if ((pp = cfpopen(pscomm,"r")) == NULL)
{