From 70f1768b9d1f2f921d75ca3d3b70975aa32f5f14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Fri, 23 Aug 2013 12:06:11 +0200 Subject: [PATCH] Make two format strings literal Fixes clang warning --- library/x509parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/x509parse.c b/library/x509parse.c index bbaca8ea4..a76285512 100644 --- a/library/x509parse.c +++ b/library/x509parse.c @@ -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" );