[Libreoffice-commits] libvisio.git: src/lib
Miklos Vajna
vmiklos at collabora.co.uk
Tue Jul 21 00:33:07 PDT 2015
src/lib/VSDMetaData.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit c6223727c94e83a7eb852ff5ae07a3610942cbd1
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date: Tue Jul 21 09:32:10 2015 +0200
VSDMetaData: need space for the terminating null-character
Change-Id: Ie9cab1687dd3187819ec8e3e89b3e9355da9b255
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]);
More information about the Libreoffice-commits
mailing list