diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-07-21 09:32:10 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-07-21 09:32:16 +0200 |
commit | c6223727c94e83a7eb852ff5ae07a3610942cbd1 (patch) | |
tree | 1154ff233e0be57c6827bf8bd419b5ada1c0333d | |
parent | 23364514c7f5099b6bd687f4011f7aec9d645d7e (diff) |
VSDMetaData: need space for the terminating null-character
Change-Id: Ie9cab1687dd3187819ec8e3e89b3e9355da9b255
-rw-r--r-- | src/lib/VSDMetaData.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/VSDMetaData.cpp b/src/lib/VSDMetaData.cpp index 6449384..e8d4919 100644 --- a/src/lib/VSDMetaData.cpp +++ b/src/lib/VSDMetaData.cpp @@ -109,7 +109,8 @@ void libvisio::VSDMetaData::readPropertySetStream(librevenge::RVNGInputStream *i { data4[i] = readU8(input); } - char FMTID0[36]; + // Pretty-printed GUID is 36 bytes + the terminating null-character. + char FMTID0[37]; sprintf(FMTID0, "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x", data1, data2, data3, data4[0], data4[1], data4[2], data4[3], data4[4], data4[5], data4[6], data4[7]); |