summaryrefslogtreecommitdiff
path: root/ldmicro/lib/linuxUI
diff options
context:
space:
mode:
authorRr422018-06-22 20:48:05 +0530
committerRr422018-06-22 20:48:05 +0530
commit7c5b6c7b6750b1af91225a214fb1af3c053ec3fe (patch)
treef7238dcada25d9f3236f269c8dc0a0e978829286 /ldmicro/lib/linuxUI
parent21af660f0da7cddd80033d1e4590468f618bb5ab (diff)
downloadLDMicroGtk-7c5b6c7b6750b1af91225a214fb1af3c053ec3fe.tar.gz
LDMicroGtk-7c5b6c7b6750b1af91225a214fb1af3c053ec3fe.tar.bz2
LDMicroGtk-7c5b6c7b6750b1af91225a214fb1af3c053ec3fe.zip
fixed bug where menu shortcuts without modifiers did not work
Diffstat (limited to 'ldmicro/lib/linuxUI')
-rw-r--r--ldmicro/lib/linuxUI/linuxUI.cpp1
1 files changed, 1 insertions, 0 deletions
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';