diff --git a/mozilla/xpcom/io/nsLocalFileOS2.cpp b/mozilla/xpcom/io/nsLocalFileOS2.cpp index 2184db1f649..2257047b08c 100644 --- a/mozilla/xpcom/io/nsLocalFileOS2.cpp +++ b/mozilla/xpcom/io/nsLocalFileOS2.cpp @@ -463,7 +463,7 @@ NS_IMETHODIMP nsLocalFile::GetPath(char **_retval) { NS_ENSURE_ARG_POINTER(_retval); - *_retval = (char*)nsAllocator::Clone(mPath, strlen(mPath) + 1); + *_retval = (char*)nsAllocator::Clone((const char*)mPath, strlen(mPath) + 1); return NS_OK; }