summaryrefslogtreecommitdiff
path: root/vcl/workben
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-03-15 10:02:30 +0200
committerTor Lillqvist <tml@collabora.com>2016-03-15 10:21:43 +0200
commit1edbb90c9e9296bec33f4c590f3133160b7f9702 (patch)
treec174813f099498e8d8973d030751c24ea905d315 /vcl/workben
parent2adf4ae59a0d92e289bbd63c8ed3490a58c4cbbf (diff)
We use strlen() on these char arrays so better terminate them with 0
Avoids an assertion failure for me. Change-Id: I811a3702baf76465acc580bc0e05db8a3c7f5364
Diffstat (limited to 'vcl/workben')
-rw-r--r--vcl/workben/vcldemo.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/vcl/workben/vcldemo.cxx b/vcl/workben/vcldemo.cxx
index 4a3ffe544302..c3cb73294aa3 100644
--- a/vcl/workben/vcldemo.cxx
+++ b/vcl/workben/vcldemo.cxx
@@ -488,28 +488,28 @@ public:
static void drawComplex (OutputDevice &rDev, Rectangle r)
{
- const unsigned char pInvalid[] = { 0xfe, 0x1f };
- const unsigned char pDiacritic1[] = { 0x61, 0xcc, 0x8a, 0xcc, 0x8c };
- const unsigned char pDiacritic2[] = { 0x61, 0xcc, 0x88, 0xcc, 0x86 };
- const unsigned char pDiacritic3[] = { 0x61, 0xcc, 0x8b, 0xcc, 0x87 };
+ const unsigned char pInvalid[] = { 0xfe, 0x1f, 0 };
+ const unsigned char pDiacritic1[] = { 0x61, 0xcc, 0x8a, 0xcc, 0x8c, 0 };
+ const unsigned char pDiacritic2[] = { 0x61, 0xcc, 0x88, 0xcc, 0x86, 0 };
+ const unsigned char pDiacritic3[] = { 0x61, 0xcc, 0x8b, 0xcc, 0x87, 0 };
const unsigned char pJustification[] = {
0x64, 0x20, 0xc3, 0xa1, 0xc3, 0xa9, 0x77, 0xc4, 0x8d,
- 0xc5, 0xa1, 0xc3, 0xbd, 0xc5, 0x99, 0x20, 0xc4, 0x9b
+ 0xc5, 0xa1, 0xc3, 0xbd, 0xc5, 0x99, 0x20, 0xc4, 0x9b, 0
};
const unsigned char pEmojis[] = {
0xf0, 0x9f, 0x8d, 0x80, 0xf0, 0x9f, 0x91, 0x98,
0xf0, 0x9f, 0x92, 0x8a, 0xf0, 0x9f, 0x92, 0x99,
- 0xf0, 0x9f, 0x92, 0xa4, 0xf0, 0x9f, 0x94, 0x90
+ 0xf0, 0x9f, 0x92, 0xa4, 0xf0, 0x9f, 0x94, 0x90, 0
};
const unsigned char pThreeBowlG[] = {
- 0xe2, 0x9a, 0x82, 0xe2, 0x99, 0xa8, 0xc4, 0x9e
+ 0xe2, 0x9a, 0x82, 0xe2, 0x99, 0xa8, 0xc4, 0x9e, 0
};
const unsigned char pWavesAndDomino[] = {
0xe2, 0x99, 0x92, 0xf0, 0x9f, 0x81, 0xa0,
- 0xf0, 0x9f, 0x82, 0x93
+ 0xf0, 0x9f, 0x82, 0x93, 0
};
const unsigned char pSpadesAndBits[] = {
- 0xf0, 0x9f, 0x82, 0xa1, 0xc2, 0xa2, 0xc2, 0xa2
+ 0xf0, 0x9f, 0x82, 0xa1, 0xc2, 0xa2, 0xc2, 0xa2, 0
};
struct {