diff --git a/xpinstall/src/nsRegisterItem.cpp b/xpinstall/src/nsRegisterItem.cpp index 2650fc447787..f9433680d132 100644 --- a/xpinstall/src/nsRegisterItem.cpp +++ b/xpinstall/src/nsRegisterItem.cpp @@ -285,7 +285,7 @@ char* nsRegisterItem::toString() nsresult rv = mChrome->GetPath(getter_Copies(path)); if (NS_SUCCEEDED(rv) && path) { - PR_snprintf(buffer, 1024, rsrcVal, path); + PR_snprintf(buffer, 1024, rsrcVal, (const char*)path); } } nsCRT::free(rsrcVal);