summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--openbsd-compat/bsd-snprintf.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 26dfabde6..5bdf50aab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
2 - (djm) [configure.ac] include leading zero characters in OpenSSL version 2 - (djm) [configure.ac] include leading zero characters in OpenSSL version
3 number; fixes test for unsupported versions 3 number; fixes test for unsupported versions
4 - (djm) [sshbuf-getput-crypto.c] Fix compilation when OpenSSL lacks ECC 4 - (djm) [sshbuf-getput-crypto.c] Fix compilation when OpenSSL lacks ECC
5 - (djm) [openbsd-compat/bsd-snprintf.c] Fix compilation failure (prototype/
6 definition mismatch) and warning for broken/missing snprintf case.
5 7
620140821 820140821
7 - (djm) [Makefile.in] fix reference to libtest_helper.a in sshkey test too. 9 - (djm) [Makefile.in] fix reference to libtest_helper.a in sshkey test too.
diff --git a/openbsd-compat/bsd-snprintf.c b/openbsd-compat/bsd-snprintf.c
index 975991e7f..23a635989 100644
--- a/openbsd-compat/bsd-snprintf.c
+++ b/openbsd-compat/bsd-snprintf.c
@@ -538,7 +538,7 @@ fmtstr(char *buffer, size_t *currlen, size_t maxlen,
538 } 538 }
539 while (*value && (cnt < max)) { 539 while (*value && (cnt < max)) {
540 DOPR_OUTCH(buffer, *currlen, maxlen, *value); 540 DOPR_OUTCH(buffer, *currlen, maxlen, *value);
541 *value++; 541 value++;
542 ++cnt; 542 ++cnt;
543 } 543 }
544 while ((padlen < 0) && (cnt < max)) { 544 while ((padlen < 0) && (cnt < max)) {
@@ -553,7 +553,7 @@ fmtstr(char *buffer, size_t *currlen, size_t maxlen,
553 553
554static int 554static int
555fmtint(char *buffer, size_t *currlen, size_t maxlen, 555fmtint(char *buffer, size_t *currlen, size_t maxlen,
556 LLONG value, int base, int min, int max, int flags) 556 intmax_t value, int base, int min, int max, int flags)
557{ 557{
558 int signvalue = 0; 558 int signvalue = 0;
559 unsigned LLONG uvalue; 559 unsigned LLONG uvalue;