Bug 699298 - Fix for windows build bustage

This commit is contained in:
Bill McCloskey
2011-11-09 13:53:47 -08:00
parent b701ab31b3
commit f0fa42a8f1

View File

@@ -40,10 +40,11 @@
#include <stdio.h>
#include "jscntxt.h"
#include "jsprobes.h"
#include "jsutil.h"
#include "jscrashformat.h"
#include "jscrashreport.h"
#include "jsprf.h"
#include "jsprobes.h"
#include "jsutil.h"
#include "prmjtime.h"
#include "gc/Statistics.h"
@@ -54,15 +55,15 @@ namespace gcstats {
Statistics::ColumnInfo::ColumnInfo(const char *title, double t, double total)
: title(title)
{
snprintf(str, sizeof(str), "%.1f", t);
snprintf(totalStr, sizeof(totalStr), "%.1f", total);
JS_snprintf(str, sizeof(str), "%.1f", t);
JS_snprintf(totalStr, sizeof(totalStr), "%.1f", total);
width = 6;
}
Statistics::ColumnInfo::ColumnInfo(const char *title, double t)
: title(title)
{
snprintf(str, sizeof(str), "%.1f", t);
JS_snprintf(str, sizeof(str), "%.1f", t);
strcpy(totalStr, "n/a");
width = 6;
}
@@ -70,7 +71,7 @@ Statistics::ColumnInfo::ColumnInfo(const char *title, double t)
Statistics::ColumnInfo::ColumnInfo(const char *title, unsigned int data)
: title(title)
{
snprintf(str, sizeof(str), "%d", data);
JS_snprintf(str, sizeof(str), "%d", data);
strcpy(totalStr, "n/a");
width = 4;
}