Skip to content

Commit 445a5a4

Browse files
committed
Thanks to Eyal Itkin from Check Point Software Technologies.
1 parent 602f4a2 commit 445a5a4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Diff for: libfreerdp/core/update.c

+3-5
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,9 @@ BITMAP_UPDATE* update_read_bitmap_update(rdpUpdate* update, wStream* s)
208208

209209
if (bitmapUpdate->number > bitmapUpdate->count)
210210
{
211-
UINT16 count;
212-
BITMAP_DATA* newdata;
213-
count = bitmapUpdate->number * 2;
214-
newdata = (BITMAP_DATA*) realloc(bitmapUpdate->rectangles,
215-
sizeof(BITMAP_DATA) * count);
211+
UINT32 count = bitmapUpdate->number * 2;
212+
BITMAP_DATA* newdata = (BITMAP_DATA*) realloc(bitmapUpdate->rectangles,
213+
sizeof(BITMAP_DATA) * count);
216214

217215
if (!newdata)
218216
goto fail;

0 commit comments

Comments
 (0)