summaryrefslogtreecommitdiffstats
path: root/ark/rar.h
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2016-08-26 22:11:14 +0300
committerMichele Calgaro <michele.calgaro@yahoo.it>2016-09-03 11:48:04 +0900
commite5a3116cffdf87b13912803006311262219aeb7b (patch)
treee6cf8f119ecc137c141755c3568590f7309224bb /ark/rar.h
parentd8d57cf6e803e70b62f3c630f6d54d9cc5350776 (diff)
downloadtdeutils-e5a3116cffdf87b13912803006311262219aeb7b.tar.gz
tdeutils-e5a3116cffdf87b13912803006311262219aeb7b.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.
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;
};