summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-08-28 09:43:24 +0000
committerMoonchild <moonchild@palemoon.org>2020-08-28 09:43:24 +0000
commit7407fe22fca249c699ca394755c05ef87791fb95 (patch)
tree6b8ac6b069163ce15dfc2ae1e9f08d9d8192144c /modules
parent226fea3868129374d6047c7f8fc2a5c02c97dee1 (diff)
downloaduxp-7407fe22fca249c699ca394755c05ef87791fb95.tar.gz
[misc/mar] Don't use a signed type for a length parameter.
Diffstat (limited to 'modules')
-rw-r--r--modules/libmar/src/mar_read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/libmar/src/mar_read.c b/modules/libmar/src/mar_read.c
index 378eaea882..241d0c08e4 100644
--- a/modules/libmar/src/mar_read.c
+++ b/modules/libmar/src/mar_read.c
@@ -29,7 +29,7 @@ static uint32_t mar_hash_name(const char *name) {
return val % TABLESIZE;
}
-static int mar_insert_item(MarFile *mar, const char *name, int namelen,
+static int mar_insert_item(MarFile *mar, const char *name, uint32_t namelen,
uint32_t offset, uint32_t length, uint32_t flags) {
MarItem *item, *root;
uint32_t hash;