cache: fix off-by-one-of-the-wrong-kind in BITMAP_CACHE_WAITING_LIST_INDEX handling
This commit is contained in:
parent
18c35823f2
commit
66ed01062e
@ -258,7 +258,7 @@ rdpBitmapCache* bitmap_cache_new(rdpSettings* settings)
|
|||||||
{
|
{
|
||||||
bitmap_cache->cells[i].number = settings->bitmapCacheV2CellInfo[i].numEntries;
|
bitmap_cache->cells[i].number = settings->bitmapCacheV2CellInfo[i].numEntries;
|
||||||
/* allocate an extra entry for BITMAP_CACHE_WAITING_LIST_INDEX */
|
/* allocate an extra entry for BITMAP_CACHE_WAITING_LIST_INDEX */
|
||||||
bitmap_cache->cells[i].entries = (rdpBitmap**) xzalloc(sizeof(rdpBitmap*) * bitmap_cache->cells[i].number + 1);
|
bitmap_cache->cells[i].entries = (rdpBitmap**) xzalloc(sizeof(rdpBitmap*) * (bitmap_cache->cells[i].number + 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user