imageinfo_ni: Fix memory error

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


Origin commit data
------------------
Branch: ni/coolstream
Commit: bdce1520d6
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 b23e35d092
commit 0bb21a9541
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 {