imageinfo_ni: Fix memory error

Reported from AddressSanitizer (heap-use-after-free)


Origin commit data
------------------
Branch: ni/coolstream
Commit: 517e5e7cee
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-09-24 (Sat, 24 Sep 2016)

Origin message was:
------------------
imageinfo_ni: Fix memory error

 Reported from AddressSanitizer (heap-use-after-free)


------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2016-09-24 19:48:58 +02:00
committed by vanhofen
parent 6d0b12b813
commit d35f8b74df
2 changed files with 14 additions and 14 deletions

View File

@@ -60,7 +60,7 @@ class CImageInfoNI : public CMenuTarget
void paint();
void paint_pig(int x, int y, int w, int h);
void paintLine(int xpos, int font, const char* text);
void paintLine(int xpos, int font, std::string text);
void clearLine(int xpos, int font);
typedef struct {