diff options
Diffstat (limited to 'sal')
-rw-r--r-- | sal/qa/rtl/alloc/rtl_alloc.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/qa/rtl/alloc/rtl_alloc.cxx b/sal/qa/rtl/alloc/rtl_alloc.cxx index 0e9b7c0f47a8..f59d78f9fa6c 100644 --- a/sal/qa/rtl/alloc/rtl_alloc.cxx +++ b/sal/qa/rtl/alloc/rtl_alloc.cxx @@ -155,7 +155,7 @@ public: void test() { - const char *sample = "Hello World"; + const char sample[] = "Hello World"; std::vector<OUString> aStrings; rtl_alloc_preInit(true); @@ -168,7 +168,7 @@ public: for (int i = 1; i < 4096; i += 8) { OUStringBuffer aBuf(i); - aBuf.appendAscii(sample, (i/8) % (sizeof(sample)-1)); + aBuf.appendAscii(sample, (i/8) % (SAL_N_ELEMENTS(sample)-1)); OUString aStr = aBuf.makeStringAndClear(); aStrings.push_back(aStr); } |