[Pkg-gnupg-commit] [gpgme] 131/132: avoid format warning during build
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed Apr 26 01:01:45 UTC 2017
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch experimental
in repository gpgme.
commit ff2fab5f401b4fcbb12a6364d5772df56bb5271f
Author: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
Date: Tue Apr 25 20:42:54 2017 -0400
avoid format warning during build
---
.../0002-qt-pass-fmt-to-gpgrt_asprintf.patch | 28 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 29 insertions(+)
diff --git a/debian/patches/0002-qt-pass-fmt-to-gpgrt_asprintf.patch b/debian/patches/0002-qt-pass-fmt-to-gpgrt_asprintf.patch
new file mode 100644
index 0000000..cf9fd8e
--- /dev/null
+++ b/debian/patches/0002-qt-pass-fmt-to-gpgrt_asprintf.patch
@@ -0,0 +1,28 @@
+From: Igor Gnatenko <ignatenkobrain at fedoraproject.org>
+Date: Wed, 29 Mar 2017 07:20:51 +0200
+Subject: qt: pass fmt to gpgrt_asprintf()
+
+* lang/qt/src/dn.cpp (parse_dn_part): Add fmt argument instead of
+using name directly.
+
+GnuPG-Bug-Id: 3023
+Signed-off-by: Igor Gnatenko <ignatenkobrain at fedoraproject.org>
+Signed-off-by: Andre Heinecke <aheinecke at intevation.de>
+(cherry picked from commit 5d4f977dac542340c877fdd4b1304fa8f6e058e6)
+---
+ 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 f9fb2f6..4310ad6 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;
diff --git a/debian/patches/series b/debian/patches/series
index a45150a..057bc06 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
0001-avoid-identifying-as-beta.patch
+0002-qt-pass-fmt-to-gpgrt_asprintf.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git
More information about the Pkg-gnupg-commit
mailing list