diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-03-10 11:10:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-10 11:10:35 +0100 |
commit | 9e2ba2237f3ead25f6caa0c6838934058f795fa8 (patch) | |
tree | 5811fb7409a0d382df30042b88d1cca896bb3a3f /toolkit/components | |
parent | 2e5f399735258263bc1b172b5312567d1256093c (diff) | |
parent | 28b120018135438eaff8307f3cdef921a697d47a (diff) | |
download | UXP-9e2ba2237f3ead25f6caa0c6838934058f795fa8.tar UXP-9e2ba2237f3ead25f6caa0c6838934058f795fa8.tar.gz UXP-9e2ba2237f3ead25f6caa0c6838934058f795fa8.tar.lz UXP-9e2ba2237f3ead25f6caa0c6838934058f795fa8.tar.xz UXP-9e2ba2237f3ead25f6caa0c6838934058f795fa8.zip |
Merge pull request #51 from trav90/buildsystem-work
Improve support for GCC 7.x
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; } |