From 3472c4c80caee3a52568bfdab49883916a1738e7 Mon Sep 17 00:00:00 2001 From: Michael Liebmann Date: Wed, 26 Oct 2016 13:46:04 +0200 Subject: [PATCH] CMenuWidget::saveScreen: Fix segfault Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/a3e0a0e91797be15cbce097857275cfcd90e8406 Author: Michael Liebmann Date: 2016-10-26 (Wed, 26 Oct 2016) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/widget/menue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/widget/menue.cpp b/src/gui/widget/menue.cpp index 32533c863..3253c53d7 100644 --- a/src/gui/widget/menue.cpp +++ b/src/gui/widget/menue.cpp @@ -1389,7 +1389,7 @@ void CMenuWidget::saveScreen() delete[] background; - background = new fb_pixel_t [full_width * full_height]; + background = new fb_pixel_t [full_width * (full_height+fbutton_height)]; if(background) frameBuffer->SaveScreen(x /*-ConnectLineBox_Width*/, y, full_width, full_height + fbutton_height, background); }