summaryrefslogtreecommitdiffstats
path: root/ark/rar.h
diff options
context:
space:
mode:
authorAlexander Golubev <[email protected]>2016-08-26 22:11:14 +0300
committerMichele Calgaro <[email protected]>2016-09-03 11:51:07 +0900
commit03af0c40cb19e918d73b861a273f8659a1ed8604 (patch)
tree9993f65cf58949138f93ad38cbb98a2591b0099d /ark/rar.h
parentf38d0cf308d7ba7f59466f8f9d0c5703397590ae (diff)
downloadtdeutils-03af0c40cb19e918d73b861a273f8659a1ed8604.tar.gz
tdeutils-03af0c40cb19e918d73b861a273f8659a1ed8604.zip
Ark: [rar module] fix suppport for buggy rar versions
Rar versions from 5.0 till 5.3, not including the last one were added extra spaces to short directory/file names. This behaviour resulted in appearing of additional entries for directories and may be some other issues. Also slightly rework internal rar version parsing/storing and fix some comments. (cherry picked from commit e5a3116cffdf87b13912803006311262219aeb7b)
Diffstat (limited to 'ark/rar.h')
-rw-r--r--ark/rar.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ark/rar.h b/ark/rar.h
index fadb3e9..1476214 100644
--- a/ark/rar.h
+++ b/ark/rar.h
@@ -24,6 +24,8 @@
#ifndef RAR_H
#define RAR_H
+#include <stdint.h>
+
#include "arch.h"
class TQString;
@@ -65,7 +67,7 @@ class RarArch : public Arch
* Therefore, the variables below are needed.
*/
bool m_isFirstLine;
- short m_version;
+ uint32_t m_version;
TQString m_entryFilename;
};