diff options
author | trav90 <travawine@openmailbox.org> | 2018-03-04 15:31:36 -0600 |
---|---|---|
committer | trav90 <travawine@openmailbox.org> | 2018-03-04 15:31:36 -0600 |
commit | 050973b503346c67f599b634983ffa579926ac4c (patch) | |
tree | 9ff0c2e371b340531a0ea7c3df38b679f30f3a87 /toolkit/components | |
parent | 141607b6de3113e5bb0174ee817bf9d438e31950 (diff) | |
download | UXP-050973b503346c67f599b634983ffa579926ac4c.tar UXP-050973b503346c67f599b634983ffa579926ac4c.tar.gz UXP-050973b503346c67f599b634983ffa579926ac4c.tar.lz UXP-050973b503346c67f599b634983ffa579926ac4c.tar.xz UXP-050973b503346c67f599b634983ffa579926ac4c.zip |
Fix a truncation leading to an error with GCC 7
Diffstat (limited to 'toolkit/components')
-rw-r--r-- | toolkit/components/ctypes/tests/jsctypes-test-finalizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toolkit/components/ctypes/tests/jsctypes-test-finalizer.cpp b/toolkit/components/ctypes/tests/jsctypes-test-finalizer.cpp index 79e21cc89..009ba917a 100644 --- a/toolkit/components/ctypes/tests/jsctypes-test-finalizer.cpp +++ b/toolkit/components/ctypes/tests/jsctypes-test-finalizer.cpp @@ -232,8 +232,8 @@ test_finalizer_acq_string_t(int i) { gFinalizerTestResources[i] = 1; if (!gFinalizerTestNames[i]) { - char* buf = new char[10]; - snprintf(buf, 10, "%d", i); + char* buf = new char[12]; + snprintf(buf, 12, "%d", i); gFinalizerTestNames[i] = buf; return buf; } |