pkgsrc-Changes archive

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

CVS commit: pkgsrc/security/netpgpverify/files



Module Name:    pkgsrc
Committed By:   agc
Date:           Wed Jun 15 20:28:49 UTC 2016

Modified Files:
        pkgsrc/security/netpgpverify/files: main.c verify.h

Log Message:
Update netpgpverify and libnetpgpverify to 20160617

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


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/security/netpgpverify/files/main.c
cvs rdiff -u -r1.23 -r1.24 pkgsrc/security/netpgpverify/files/verify.h

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

Modified files:

Index: pkgsrc/security/netpgpverify/files/main.c
diff -u pkgsrc/security/netpgpverify/files/main.c:1.5 pkgsrc/security/netpgpverify/files/main.c:1.6
--- pkgsrc/security/netpgpverify/files/main.c:1.5       Fri Jan 30 18:47:51 2015
+++ pkgsrc/security/netpgpverify/files/main.c   Wed Jun 15 20:28:48 2016
@@ -49,10 +49,11 @@ ptime(int64_t secs)
 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);
 }
 

Index: pkgsrc/security/netpgpverify/files/verify.h
diff -u pkgsrc/security/netpgpverify/files/verify.h:1.23 pkgsrc/security/netpgpverify/files/verify.h:1.24
--- pkgsrc/security/netpgpverify/files/verify.h:1.23    Wed Jun 15 16:45:10 2016
+++ pkgsrc/security/netpgpverify/files/verify.h Wed Jun 15 20:28:48 2016
@@ -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