libcap/libcap-array-range-fix.diff

12 lines
418 B
Diff

--- libcap/cap_extint.c-dist 2007-01-24 12:04:05.000000000 +0100
+++ libcap/cap_extint.c 2007-01-24 12:04:48.000000000 +0100
@@ -105,7 +105,7 @@ cap_t cap_copy_int(const void *cap_ext)
return NULL;
blen = export->length_of_capset;
- for (set=0; set<=NUMBER_OF_CAP_SETS; ++set) {
+ for (set=0; set<NUMBER_OF_CAP_SETS; ++set) {
int blk;
int bno = 0;
for (blk=0; blk<(CAP_SET_SIZE/4); ++blk) {