diff --git a/lang/qt/src/dn.cpp b/lang/qt/src/dn.cpp index 3376aef1..f9fb2f6f 100644 --- a/lang/qt/src/dn.cpp +++ b/lang/qt/src/dn.cpp @@ -37,7 +37,7 @@ #include "dn.h" -#include +#include static const struct { const char *name; @@ -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); - p = qstrdup(oidmap[i].name); + gpgrt_asprintf(&p, oidmap[i].name); break; } array->key = p;