Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/netpgp/dist/src/lib Use %s for the forma...



details:   https://anonhg.NetBSD.org/src/rev/4b42529c6901
branches:  trunk
changeset: 777792:4b42529c6901
user:      agc <agc%NetBSD.org@localhost>
date:      Sun Mar 04 19:52:02 2012 +0000

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

diffstat:

 crypto/external/bsd/netpgp/dist/src/lib/compress.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r 565b4cab5973 -r 4b42529c6901 crypto/external/bsd/netpgp/dist/src/lib/compress.c
--- a/crypto/external/bsd/netpgp/dist/src/lib/compress.c        Sun Mar 04 18:38:31 2012 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/lib/compress.c        Sun Mar 04 19:52:02 2012 +0000
@@ -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 @@
                        } 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;
                }



Home | Main Index | Thread Index | Old Index