summaryrefslogtreecommitdiff
path: root/src/lib/libssl/src/crypto/mem_dbg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libssl/src/crypto/mem_dbg.c')
-rw-r--r--src/lib/libssl/src/crypto/mem_dbg.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/libssl/src/crypto/mem_dbg.c b/src/lib/libssl/src/crypto/mem_dbg.c
index 9221df00bd..e212de27e4 100644
--- a/src/lib/libssl/src/crypto/mem_dbg.c
+++ b/src/lib/libssl/src/crypto/mem_dbg.c
@@ -606,22 +606,22 @@ static void print_leak(const MEM *m, MEM_LEAK *l)
606 { 606 {
607 lcl = localtime(&m->time); 607 lcl = localtime(&m->time);
608 608
609 snprintf(bufp, BUF_REMAIN, "[%02d:%02d:%02d] ", 609 BIO_snprintf(bufp, BUF_REMAIN, "[%02d:%02d:%02d] ",
610 lcl->tm_hour,lcl->tm_min,lcl->tm_sec); 610 lcl->tm_hour,lcl->tm_min,lcl->tm_sec);
611 bufp += strlen(bufp); 611 bufp += strlen(bufp);
612 } 612 }
613 613
614 snprintf(bufp, BUF_REMAIN, "%5lu file=%s, line=%d, ", 614 BIO_snprintf(bufp, BUF_REMAIN, "%5lu file=%s, line=%d, ",
615 m->order,m->file,m->line); 615 m->order,m->file,m->line);
616 bufp += strlen(bufp); 616 bufp += strlen(bufp);
617 617
618 if (options & V_CRYPTO_MDEBUG_THREAD) 618 if (options & V_CRYPTO_MDEBUG_THREAD)
619 { 619 {
620 snprintf(bufp, BUF_REMAIN, "thread=%lu, ", m->thread); 620 BIO_snprintf(bufp, BUF_REMAIN, "thread=%lu, ", m->thread);
621 bufp += strlen(bufp); 621 bufp += strlen(bufp);
622 } 622 }
623 623
624 snprintf(bufp, BUF_REMAIN, "number=%d, address=%08lX\n", 624 BIO_snprintf(bufp, BUF_REMAIN, "number=%d, address=%08lX\n",
625 m->num,(unsigned long)m->addr); 625 m->num,(unsigned long)m->addr);
626 bufp += strlen(bufp); 626 bufp += strlen(bufp);
627 627
@@ -643,7 +643,7 @@ static void print_leak(const MEM *m, MEM_LEAK *l)
643 643
644 ami_cnt++; 644 ami_cnt++;
645 memset(buf,'>',ami_cnt); 645 memset(buf,'>',ami_cnt);
646 snprintf(buf + ami_cnt, sizeof buf - ami_cnt, 646 BIO_snprintf(buf + ami_cnt, sizeof buf - ami_cnt,
647 " thread=%lu, file=%s, line=%d, info=\"", 647 " thread=%lu, file=%s, line=%d, info=\"",
648 amip->thread, amip->file, amip->line); 648 amip->thread, amip->file, amip->line);
649 buf_len=strlen(buf); 649 buf_len=strlen(buf);
@@ -655,11 +655,11 @@ static void print_leak(const MEM *m, MEM_LEAK *l)
655 } 655 }
656 else 656 else
657 { 657 {
658 strlcpy(buf + buf_len, amip->info, 658 BUF_strlcpy(buf + buf_len, amip->info,
659 sizeof buf - buf_len); 659 sizeof buf - buf_len);
660 buf_len = strlen(buf); 660 buf_len = strlen(buf);
661 } 661 }
662 snprintf(buf + buf_len, sizeof buf - buf_len, "\"\n"); 662 BIO_snprintf(buf + buf_len, sizeof buf - buf_len, "\"\n");
663 663
664 BIO_puts(l->bio,buf); 664 BIO_puts(l->bio,buf);
665 665