Fix bustage. b=104763

git-svn-id: svn://10.0.0.236/trunk@105478 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%fas.harvard.edu
2001-10-16 06:34:32 +00:00
parent be48f09bf2
commit 7b0065f0a6

View File

@@ -367,7 +367,7 @@ void SaveWebPage(nsIWebBrowser *aWebBrowser)
// Copy filename to a character buffer
char szFile[_MAX_PATH];
memset(szFile, 0, sizeof(szFile));
fileName.ToCString(szFile, sizeof(szFile) - 1);
PL_strncpyz(szFile, fileName.get(), sizeof(szFile) - 1); // XXXldb probably should be just sizeof(szfile)
// Initialize the file save as information structure
OPENFILENAME saveFileNameInfo;