pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/netpgpverify/files Update netpgpverify and li...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/baf819c39ddf
branches:  trunk
changeset: 348531:baf819c39ddf
user:      agc <agc%pkgsrc.org@localhost>
date:      Wed Jun 15 20:28:48 2016 +0000

description:
Update netpgpverify and libnetpgpverify to 20160617

+ don't assume memory will be NUL-terminated when printing

diffstat:

 security/netpgpverify/files/main.c   |  5 +++--
 security/netpgpverify/files/verify.h |  4 ++--
 2 files changed, 5 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r ab7b47819fb7 -r baf819c39ddf security/netpgpverify/files/main.c
--- a/security/netpgpverify/files/main.c        Wed Jun 15 20:12:20 2016 +0000
+++ b/security/netpgpverify/files/main.c        Wed Jun 15 20:28:48 2016 +0000
@@ -49,10 +49,11 @@
 static void
 pentry(pgpv_t *pgp, int n, const char *modifiers)
 {
+       size_t   cc;
        char    *s;
 
-       pgpv_get_entry(pgp, (unsigned)n, &s, modifiers);
-       printf("%s", s);
+       cc = pgpv_get_entry(pgp, (unsigned)n, &s, modifiers);
+       fwrite(s, 1, cc, stdout);
        free(s);
 }
 
diff -r ab7b47819fb7 -r baf819c39ddf security/netpgpverify/files/verify.h
--- a/security/netpgpverify/files/verify.h      Wed Jun 15 20:12:20 2016 +0000
+++ b/security/netpgpverify/files/verify.h      Wed Jun 15 20:28:48 2016 +0000
@@ -23,9 +23,9 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 #ifndef NETPGP_VERIFY_H_
-#define NETPGP_VERIFY_H_       20160616
+#define NETPGP_VERIFY_H_       20160617
 
-#define NETPGPVERIFY_VERSION   "netpgpverify portable 20160616"
+#define NETPGPVERIFY_VERSION   "netpgpverify portable 20160617"
 
 #include <sys/types.h>
 



Home | Main Index | Thread Index | Old Index