aboutsummaryrefslogtreecommitdiff
path: root/textproc/libvisio01/files
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2015-08-10 23:59:25 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2015-08-10 23:59:25 +0000
commit236314df92c7c769343ffdaa613dbb1b2d1b59dc (patch)
tree75e34cc0b884a210c86469d4355d420db7be985d /textproc/libvisio01/files
parenta4f858c6fbb3f7682bb72a7261bf98007d4e4f0c (diff)
downloadports-236314df92c7c769343ffdaa613dbb1b2d1b59dc.tar.gz
ports-236314df92c7c769343ffdaa613dbb1b2d1b59dc.zip
Update to 0.1.3.
Notes
Notes: svn path=/head/; revision=393927
Diffstat (limited to 'textproc/libvisio01/files')
-rw-r--r--textproc/libvisio01/files/patch-src__lib__VSDMetaData.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/textproc/libvisio01/files/patch-src__lib__VSDMetaData.cpp b/textproc/libvisio01/files/patch-src__lib__VSDMetaData.cpp
index 6a0c5177ec62..069ce6c2ffbc 100644
--- a/textproc/libvisio01/files/patch-src__lib__VSDMetaData.cpp
+++ b/textproc/libvisio01/files/patch-src__lib__VSDMetaData.cpp
@@ -1,11 +1,11 @@
---- src/lib/VSDMetaData.cpp.orig 2015-01-01 16:11:45.000000000 -0500
-+++ src/lib/VSDMetaData.cpp 2015-02-02 17:20:34.953039000 -0500
-@@ -226,7 +226,7 @@
- uint64_t modifiedTime = readU64(input);
+--- src/lib/VSDMetaData.cpp.orig 2015-07-25 07:17:57 UTC
++++ src/lib/VSDMetaData.cpp
+@@ -302,7 +302,7 @@ bool libvisio::VSDMetaData::parseTimes(l
+ uint32_t firstDirSectorLocation = readU32(input);
- // modifiedTime is number of 100ns since Jan 1 1601
-- static const uint64_t epoch = 11644473600;
-+ static const uint64_t epoch = 11644473600ULL;
- time_t sec = (modifiedTime / 10000000) - epoch;
- const struct tm *time = localtime(&sec);
- if (time)
+ // Seek to the Root Directory Entry
+- size_t sectorSize = std::pow(2, sectorShift);
++ size_t sectorSize = 1UL << sectorShift;
+ input->seek((firstDirSectorLocation + 1) * sectorSize, librevenge::RVNG_SEEK_SET);
+ // DirectoryEntryName: 64 bytes
+ // DirectoryEntryNameLength: 2 bytes