diff --git a/mozilla/profile/Acct/nsAccount.cpp b/mozilla/profile/Acct/nsAccount.cpp index 03056fd32e4..493f27554ad 100644 --- a/mozilla/profile/Acct/nsAccount.cpp +++ b/mozilla/profile/Acct/nsAccount.cpp @@ -318,7 +318,7 @@ int nsAccount::IterateDirectoryChildren(nsFileSpec& startChild) { printf ("Inside the iteration \n"); - char* itemName = ((nsFileSpec&)i).GetLeafName(); + char* itemName = (i.Spec()).GetLeafName(); PL_strcpy(gNCIInfo[NCICount], itemName); mConsole << '\t' << itemName << nsEndl; mConsole << '\t' << "This is the arraynumber "<