Fixing build bustage

git-svn-id: svn://10.0.0.236/trunk@176290 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
roc+%cs.cmu.edu 2005-07-19 22:50:37 +00:00
parent 5c5ef109f7
commit b727713c7a

View File

@ -1228,7 +1228,7 @@ nsPrintOptions::WritePrefDouble(const char * aPrefId, double aVal)
NS_ENSURE_ARG_POINTER(aPrefId);
char str[16]; // max 9 chars in below snprintf(), 16 will do nicely
int ret = snprintf(str, sizeof(str), "%6.2f", aVal);
int ret = PR_snprintf(str, sizeof(str), "%6.2f", aVal);
NS_ENSURE_TRUE(ret >= 0, NS_ERROR_FAILURE);
return mPrefBranch->SetCharPref(aPrefId, str);