Module Name:    src
Committed By:   agc
Date:           Sun Mar  4 19:52:02 UTC 2012

Modified Files:
        src/crypto/external/bsd/netpgp/dist/src/lib: compress.c

Log Message:
Use %s for the format string, as pointed out by joerg in the diff for
__printflike attributions (on tech-userlevel, March 1st 2012).


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 \
    src/crypto/external/bsd/netpgp/dist/src/lib/compress.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/crypto/external/bsd/netpgp/dist/src/lib/compress.c
diff -u src/crypto/external/bsd/netpgp/dist/src/lib/compress.c:1.21 src/crypto/external/bsd/netpgp/dist/src/lib/compress.c:1.22
--- src/crypto/external/bsd/netpgp/dist/src/lib/compress.c:1.21	Mon Nov 15 08:03:39 2010
+++ src/crypto/external/bsd/netpgp/dist/src/lib/compress.c	Sun Mar  4 19:52:02 2012
@@ -57,7 +57,7 @@
 
 #if defined(__NetBSD__)
 __COPYRIGHT("@(#) Copyright (c) 2009 The NetBSD Foundation, Inc. All rights reserved.");
-__RCSID("$NetBSD: compress.c,v 1.21 2010/11/15 08:03:39 agc Exp $");
+__RCSID("$NetBSD: compress.c,v 1.22 2012/03/04 19:52:02 agc Exp $");
 #endif
 
 #ifdef HAVE_ZLIB_H
@@ -177,7 +177,8 @@ zlib_compressed_data_reader(pgp_stream_t
 			} else if (ret != Z_OK) {
 				(void) fprintf(stderr, "ret=%d\n", ret);
 				PGP_ERROR(cbinfo->errors,
-				PGP_E_P_DECOMPRESSION_ERROR, z->zstream.msg);
+					PGP_E_P_DECOMPRESSION_ERROR, "%s",
+					z->zstream.msg);
 			}
 			z->inflate_ret = ret;
 		}

Reply via email to