Fixing bustage. Don't listen to strdup folks. There should be fear of invoking the wrath of the Mac!

This commit is contained in:
dougt%netscape.com 2002-02-21 03:29:59 +00:00
Родитель bfb3eee204
Коммит 6cdb59e027
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -212,7 +212,7 @@ nsFileIO::Open(char **contentType, PRInt32 *contentLength)
// Directories turn into an HTTP-index stream, with
// unbounded (i.e., read 'til the stream says it's done)
// length.
*contentType = strdup(APPLICATION_HTTP_INDEX_FORMAT);
*contentType = nsCRT::strdup(APPLICATION_HTTP_INDEX_FORMAT);
*contentLength = -1;
}
else {
@ -228,7 +228,7 @@ nsFileIO::Open(char **contentType, PRInt32 *contentLength)
if (!mimeServ || (NS_FAILED(rv))) {
// if all else fails treat it as text/html?
*contentType = strdup(UNKNOWN_CONTENT_TYPE);
*contentType = nsCRT::strdup(UNKNOWN_CONTENT_TYPE);
if (*contentType == nsnull)
rv = NS_ERROR_OUT_OF_MEMORY;
else