Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Thanks to Eyal Itkin from Check Point Software Technologies.
  • Loading branch information
akallabeth committed Nov 20, 2018
1 parent 602f4a2 commit 445a5a4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions libfreerdp/core/update.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,9 @@ BITMAP_UPDATE* update_read_bitmap_update(rdpUpdate* update, wStream* s)

if (bitmapUpdate->number > bitmapUpdate->count)
{
UINT16 count;
BITMAP_DATA* newdata;
count = bitmapUpdate->number * 2;
newdata = (BITMAP_DATA*) realloc(bitmapUpdate->rectangles,
sizeof(BITMAP_DATA) * count);
UINT32 count = bitmapUpdate->number * 2;
BITMAP_DATA* newdata = (BITMAP_DATA*) realloc(bitmapUpdate->rectangles,
sizeof(BITMAP_DATA) * count);

if (!newdata)
goto fail;
Expand Down

0 comments on commit 445a5a4

Please sign in to comment.