Browse Source

ditch super-long filename and let user enter new name instead

master
roytam1 5 years ago
parent
commit
a32244b7b1
  1. 1
      k-meleon/app/SaveAsHandler.cpp

1
k-meleon/app/SaveAsHandler.cpp

@ -249,6 +249,7 @@ NS_IMETHODIMP CSaveAsHandler::Save(const char* contentType, const char* disposit
_tcsncpy(szFileName, W2CT(fileName.get()), MAX_PATH);
szFileName[MAX_PATH] = 0;
MakeFilename(szFileName);
if (fileName.Length() > MAX_PATH) szFileName[0] = 0; // ditch super-long filename and let user enter new name instead
//["@mozilla.org/intl/texttosuburi;1"]

Loading…
Cancel
Save