From 8260b28cbbc1103a20e9f920fad099922021e9c7 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Mon, 24 Aug 2009 11:23:21 +0200 Subject: Fix the last fix to QList. Reviewed-by: TrustMe --- src/corelib/tools/qlist.cpp | 2 +- src/network/ssl/qsslcertificate.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/corelib/tools/qlist.cpp b/src/corelib/tools/qlist.cpp index 868bed1..1335c30 100644 --- a/src/corelib/tools/qlist.cpp +++ b/src/corelib/tools/qlist.cpp @@ -107,7 +107,7 @@ QListData::Data *QListData::detach2() Data* t = static_cast(qMalloc(DataHeaderSize + x->alloc * sizeof(void *))); Q_CHECK_PTR(t); - ::memcpy(x, d, DataHeaderSize + d->alloc * sizeof(void *)); + ::memcpy(t, d, DataHeaderSize + d->alloc * sizeof(void *)); t->ref = 1; t->sharable = true; diff --git a/src/network/ssl/qsslcertificate.cpp b/src/network/ssl/qsslcertificate.cpp index a09b8c43..8d855b1 100644 --- a/src/network/ssl/qsslcertificate.cpp +++ b/src/network/ssl/qsslcertificate.cpp @@ -381,7 +381,7 @@ QMultiMap QSslCertificate::alternateSubje } const char *altNameStr = reinterpret_cast(q_ASN1_STRING_data(genName->d.ia5)); - const QString altName = QLatin1String(QByteArray(altNameStr, len)); + const QString altName = QString::fromLatin1(altNameStr, len); if (genName->type == GEN_DNS) result.insert(QSsl::DnsEntry, altName); else if (genName->type == GEN_EMAIL) -- cgit v0.12