gpgme/0001-qt-pass-fmt-to-gpgrt_asprintf.patch
Igor Gnatenko 80cb2f5e13 Update to 1.9.0
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-03-29 07:36:58 +02:00

28 lines
917 B
Diff

From 890b703e2b0c9e3905013593ab86f8783d4f6103 Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
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 <ignatenkobrain@fedoraproject.org>
---
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