summaryrefslogtreecommitdiff
path: root/plugins/MirOTR/Libgcrypt/cipher
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirOTR/Libgcrypt/cipher')
-rw-r--r--plugins/MirOTR/Libgcrypt/cipher/ecc.c4
-rw-r--r--plugins/MirOTR/Libgcrypt/cipher/md.c2
-rw-r--r--plugins/MirOTR/Libgcrypt/cipher/pubkey.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/plugins/MirOTR/Libgcrypt/cipher/ecc.c b/plugins/MirOTR/Libgcrypt/cipher/ecc.c
index 885ff096ba..d2d490eb0a 100644
--- a/plugins/MirOTR/Libgcrypt/cipher/ecc.c
+++ b/plugins/MirOTR/Libgcrypt/cipher/ecc.c
@@ -1574,7 +1574,7 @@ compute_keygrip (gcry_md_hd_t md, gcry_sexp_t keyparms)
raw = mpi_get_opaque (values[idx], &n);
n = (n + 7)/8;
- snprintf (buf, sizeof buf, "(1:%c%u:", names[idx], n);
+ _snprintf (buf, sizeof buf, "(1:%c%u:", names[idx], n);
_gcry_md_write (md, buf, strlen (buf));
_gcry_md_write (md, raw, n);
_gcry_md_write (md, ")", 1);
@@ -1590,7 +1590,7 @@ compute_keygrip (gcry_md_hd_t md, gcry_sexp_t keyparms)
rc = gpg_err_code_from_syserror ();
goto leave;
}
- snprintf (buf, sizeof buf, "(1:%c%u:", names[idx], rawmpilen);
+ _snprintf (buf, sizeof buf, "(1:%c%u:", names[idx], rawmpilen);
_gcry_md_write (md, buf, strlen (buf));
_gcry_md_write (md, rawmpi, rawmpilen);
_gcry_md_write (md, ")", 1);
diff --git a/plugins/MirOTR/Libgcrypt/cipher/md.c b/plugins/MirOTR/Libgcrypt/cipher/md.c
index 20b652e03b..c9f0ab3f33 100644
--- a/plugins/MirOTR/Libgcrypt/cipher/md.c
+++ b/plugins/MirOTR/Libgcrypt/cipher/md.c
@@ -1121,7 +1121,7 @@ md_start_debug ( gcry_md_hd_t md, const char *suffix )
return;
}
idx++;
- snprintf (buf, DIM(buf)-1, "dbgmd-%05d.%.10s", idx, suffix );
+ _snprintf (buf, DIM(buf)-1, "dbgmd-%05d.%.10s", idx, suffix );
md->ctx->debug = fopen(buf, "w");
if ( !md->ctx->debug )
log_debug("md debug: can't open %s\n", buf );
diff --git a/plugins/MirOTR/Libgcrypt/cipher/pubkey.c b/plugins/MirOTR/Libgcrypt/cipher/pubkey.c
index d8f5f5d0ea..147f82aa7d 100644
--- a/plugins/MirOTR/Libgcrypt/cipher/pubkey.c
+++ b/plugins/MirOTR/Libgcrypt/cipher/pubkey.c
@@ -689,7 +689,7 @@ _gcry_pk_get_keygrip (gcry_sexp_t key, unsigned char *array)
if (! data)
goto fail;
- snprintf (buf, sizeof buf, "(1:%c%u:", *s, (unsigned int)datalen);
+ _snprintf (buf, sizeof buf, "(1:%c%u:", *s, (unsigned int)datalen);
_gcry_md_write (md, buf, strlen (buf));
_gcry_md_write (md, data, datalen);
sexp_release (l2);