diff options
Diffstat (limited to 'lang/qt/src/dn.cpp')
-rw-r--r-- | lang/qt/src/dn.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lang/qt/src/dn.cpp b/lang/qt/src/dn.cpp index 0f81a4c3..3376aef1 100644 --- a/lang/qt/src/dn.cpp +++ b/lang/qt/src/dn.cpp @@ -37,6 +37,8 @@ #include "dn.h" +#include <strings.h> + static const struct { const char *name; const char *oid; @@ -165,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 = strdup(oidmap[i].name); + p = qstrdup(oidmap[i].name); break; } array->key = p; |