From afa27a25cb7eefe67a7fbea3846b873b5a614cf8 Mon Sep 17 00:00:00 2001 From: Makoto Kato Date: Mon, 12 Aug 2013 17:12:34 +0900 Subject: [PATCH] Bug 901820 - Part 3. comm-cetral part of replacing nsCRT::strdup. r=Neil, a=jcranmer --- ldap/xpcom/src/nsLDAPMessage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ldap/xpcom/src/nsLDAPMessage.cpp b/ldap/xpcom/src/nsLDAPMessage.cpp index 92f22b5a95..2d715c21c7 100644 --- a/ldap/xpcom/src/nsLDAPMessage.cpp +++ b/ldap/xpcom/src/nsLDAPMessage.cpp @@ -342,7 +342,7 @@ nsLDAPMessage::IterateAttributes(uint32_t *aAttrCount, char** *aAttributes, // if we're getting attributes, try and fill in the first field // if (getP) { - (*aAttributes)[0] = nsCRT::strdup(attr); + (*aAttributes)[0] = NS_strdup(attr); if (!(*aAttributes)[0]) { ldap_memfree(attr); nsMemory::Free(*aAttributes); @@ -390,7 +390,7 @@ nsLDAPMessage::IterateAttributes(uint32_t *aAttrCount, char** *aAttributes, // if ldap_next_attribute did return successfully, and // we're supposed to fill in a value, do so. // - (*aAttributes)[*aAttrCount] = nsCRT::strdup(attr); + (*aAttributes)[*aAttrCount] = NS_strdup(attr); if (!(*aAttributes)[*aAttrCount]) { ldap_memfree(attr); return IterateAttrErrHandler(LDAP_NO_MEMORY, aAttrCount,