зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1232113 - "Make the format specifiers in JS_snprintf() invocations more portable". r=nbp
This commit is contained in:
Родитель
c53c6f5126
Коммит
88be5e2fca
|
@ -535,8 +535,8 @@ LCovRuntime::fillWithFilename(char *name, size_t length)
|
|||
static mozilla::Atomic<size_t> globalRuntimeId(0);
|
||||
size_t rid = globalRuntimeId++;
|
||||
|
||||
size_t len = JS_snprintf(name, length, "%s/%" PRId64 "-%d-%d.info",
|
||||
outDir, timestamp, size_t(pid_), rid);
|
||||
size_t len = JS_snprintf(name, length, "%s/%" PRId64 "-%" PRIuSIZE "-%" PRIuSIZE ".info",
|
||||
outDir, timestamp, pid_, rid);
|
||||
if (length <= len) {
|
||||
fprintf(stderr, "Warning: LCovRuntime::init: Cannot serialize file name.");
|
||||
return false;
|
||||
|
|
Загрузка…
Ссылка в новой задаче