Skip to content

Commit

Permalink
cache: fix off-by-one-of-the-wrong-kind in BITMAP_CACHE_WAITING_LIST_…
Browse files Browse the repository at this point in the history
…INDEX handling
  • Loading branch information
kiilerix committed Mar 30, 2012
1 parent 18c3582 commit 66ed010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libfreerdp-cache/bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ rdpBitmapCache* bitmap_cache_new(rdpSettings* settings)
{
bitmap_cache->cells[i].number = settings->bitmapCacheV2CellInfo[i].numEntries;
/* 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));
}
}

Expand Down

0 comments on commit 66ed010

Please sign in to comment.