From c22c365aa94a2f8308a7f27287a0a1089f4f221a Mon Sep 17 00:00:00 2001 From: sorgelig Date: Mon, 31 Dec 2018 14:38:36 +0800 Subject: [PATCH] Fix memory corruption. --- osd.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osd.cpp b/osd.cpp index 17ea00f..1f0913b 100644 --- a/osd.cpp +++ b/osd.cpp @@ -120,7 +120,7 @@ static unsigned long scroll_offset = 0; // file/dir name scrolling position static unsigned long scroll_timer = 0; // file/dir name scrolling timer static int arrow; -static unsigned char titlebuffer[128]; +static unsigned char titlebuffer[256]; static void rotatechar(unsigned char *in, unsigned char *out) { @@ -151,7 +151,7 @@ void OsdSetTitle(const char *s, int a) while (1) { int c = s[i++]; - if (c && (outp