From 331f5630e916dc92c189052906704432435e7321 Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Wed, 24 Oct 2012 10:16:39 +0000 Subject: [PATCH] - Do not use sprintf(), use snprintf() instead. --- library/bignum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/bignum.c b/library/bignum.c index 5d68520ff..ef2fa50e1 100644 --- a/library/bignum.c +++ b/library/bignum.c @@ -406,7 +406,7 @@ int mpi_write_string( const mpi *X, int radix, char *s, size_t *slen ) if( c == 0 && k == 0 && ( i + j + 3 ) != 0 ) continue; - p += sprintf( p, "%02X", c ); + p += snprintf( p, 2, "%02X", c ); k = 1; } }