From 890b703e2b0c9e3905013593ab86f8783d4f6103 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 29 Mar 2017 07:20:51 +0200 Subject: [PATCH] qt: pass fmt to gpgrt_asprintf() References: https://bugs.gnupg.org/gnupg/issue3023 Signed-off-by: Igor Gnatenko --- lang/qt/src/dn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/qt/src/dn.cpp b/lang/qt/src/dn.cpp index f9fb2f6f..4310ad61 100644 --- a/lang/qt/src/dn.cpp +++ b/lang/qt/src/dn.cpp @@ -167,7 +167,7 @@ parse_dn_part(DnPair *array, const unsigned char *string) for (unsigned int i = 0; i < numOidMaps; ++i) if (!strcasecmp((char *)p, oidmap[i].oid)) { free(p); - gpgrt_asprintf(&p, oidmap[i].name); + gpgrt_asprintf(&p, "%s", oidmap[i].name); break; } array->key = p; -- 2.12.1