commit | 331f5630e916dc92c189052906704432435e7321 | [log] [tgz] |
---|---|---|
author | Paul Bakker <p.j.bakker@polarssl.org> | Wed Oct 24 10:16:39 2012 +0000 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Wed Oct 24 10:16:39 2012 +0000 |
tree | 32b44820d55172df94be49ca621d5bca6ac20e09 | |
parent | 5fb47f40b890346f1a1e13a7ab609a0cd2b1fb85 [diff] [blame] |
- Do not use sprintf(), use snprintf() instead.
diff --git a/library/bignum.c b/library/bignum.c index 5d68520..ef2fa50 100644 --- a/library/bignum.c +++ b/library/bignum.c
@@ -406,7 +406,7 @@ if( c == 0 && k == 0 && ( i + j + 3 ) != 0 ) continue; - p += sprintf( p, "%02X", c ); + p += snprintf( p, 2, "%02X", c ); k = 1; } }