diff --git a/tools/tiffdump.c b/tools/tiffdump.c index 4cdcda0c..8d9b6a73 100644 --- a/tools/tiffdump.c +++ b/tools/tiffdump.c @@ -451,7 +451,7 @@ ReadDirectory(int fd, unsigned int ix, uint64 off) { datafits = 0; datamem = NULL; - dataoffset = *(uint64*)dp; + memcpy(&dataoffset, dp, sizeof(uint64)); if (swabflag) TIFFSwabLong8(&dataoffset); }