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/netpgpverify Update netp...
details: https://anonhg.NetBSD.org/src/rev/ea4b8197b8e8
branches: trunk
changeset: 345926:ea4b8197b8e8
user: agc <agc%NetBSD.org@localhost>
date: Wed Jun 15 20:34:28 2016 +0000
description:
Update netpgpverify to 20160617
Sync with changes in pkgsrc
+ don't assume a string is NUL-terminated - use fwrite(3) with a specific size
diffstat:
crypto/external/bsd/netpgp/dist/src/netpgpverify/main.c | 5 +++--
crypto/external/bsd/netpgp/dist/src/netpgpverify/verify.h | 4 ++--
2 files changed, 5 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r c7bf5bd82bbe -r ea4b8197b8e8 crypto/external/bsd/netpgp/dist/src/netpgpverify/main.c
--- a/crypto/external/bsd/netpgp/dist/src/netpgpverify/main.c Wed Jun 15 16:51:46 2016 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/netpgpverify/main.c Wed Jun 15 20:34:28 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 c7bf5bd82bbe -r ea4b8197b8e8 crypto/external/bsd/netpgp/dist/src/netpgpverify/verify.h
--- a/crypto/external/bsd/netpgp/dist/src/netpgpverify/verify.h Wed Jun 15 16:51:46 2016 +0000
+++ b/crypto/external/bsd/netpgp/dist/src/netpgpverify/verify.h Wed Jun 15 20:34:28 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