Make two format strings literal

Fixes clang warning
This commit is contained in:
Manuel Pégourié-Gonnard 2013-08-23 12:06:11 +02:00 committed by Paul Bakker
parent 5151b45aa1
commit 70f1768b9d

View file

@ -3166,7 +3166,7 @@ int x509parse_cert_info( char *buf, size_t size, const char *prefix,
if( ret != 0 )
ret = snprintf( p, n, "???" );
else
ret = snprintf( p, n, desc );
ret = snprintf( p, n, "%s", desc );
SAFE_SNPRINTF();
if( ( ret = x509_key_size_helper( key_size_str, BEFORE_COLON,
@ -3274,7 +3274,7 @@ int x509parse_crl_info( char *buf, size_t size, const char *prefix,
if( ret != 0 )
ret = snprintf( p, n, "???" );
else
ret = snprintf( p, n, desc );
ret = snprintf( p, n, "%s", desc );
SAFE_SNPRINTF();
ret = snprintf( p, n, "\n" );