]> git.pld-linux.org Git - packages/poldek.git/blame - 64k-packages.patch
poldek-config: add -c option
[packages/poldek.git] / 64k-packages.patch
CommitLineData
ad277442
JR
1From a46a0bc806331e419207ae951864243946892b9a Mon Sep 17 00:00:00 2001
2From: Marcin Banasiak <marcin.banasiak@gmail.com>
3Date: Wed, 20 Apr 2016 19:56:34 +0200
4Subject: Fix crash when loading more than 64k packages (lp#1571324)
5
6
7diff --git a/capreqidx.h b/capreqidx.h
8index 0311e76..327e1f4 100644
9--- a/capreqidx.h
10+++ b/capreqidx.h
11@@ -28,8 +28,10 @@ struct capreq_idx {
12
13 struct pkg;
14 struct capreq_idx_ent {
15- int16_t items;
16- int32_t _size;
17+
18+ unsigned int items; /* number of elements stored in this entry */
19+ unsigned int _size; /* number of elements for which memory is already allocated */
20+
21 union {
22 struct pkg *pkg;
23 struct pkg **pkgs; /* pkgs list */
24--
25cgit v0.10.2
26
This page took 0.031435 seconds and 4 git commands to generate.