From 7c5b6c7b6750b1af91225a214fb1af3c053ec3fe Mon Sep 17 00:00:00 2001 From: Rr42 Date: Fri, 22 Jun 2018 20:48:05 +0530 Subject: fixed bug where menu shortcuts without modifiers did not work --- ldmicro/lib/linuxUI/linuxUI.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'ldmicro/lib/linuxUI') diff --git a/ldmicro/lib/linuxUI/linuxUI.cpp b/ldmicro/lib/linuxUI/linuxUI.cpp index 9891d70..f5029b9 100644 --- a/ldmicro/lib/linuxUI/linuxUI.cpp +++ b/ldmicro/lib/linuxUI/linuxUI.cpp @@ -396,6 +396,7 @@ void TextOut(HWID hWid, HCRDC hcr, int nXStart, int nYStart, LPCTSTR lpString, i if (resize_flag) gtk_widget_set_size_request(hWid, width, height); + char* text = (char*)malloc(cchString); strncpy(text, lpString, cchString); text[cchString] = '\0'; -- cgit