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@fedoraproject.org>
Signed-off-by: Andre Heinecke <aheinecke@intevation.de>
This commit is contained in:
Igor Gnatenko 2017-03-29 07:20:51 +02:00 committed by Andre Heinecke
parent f8a9ecc629
commit 5d4f977dac
No known key found for this signature in database
GPG Key ID: 2978E9D40CBABA5C

View File

@ -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;