mirror of
https://github.com/fltk/fltk.git
synced 2026-05-23 15:56:10 +08:00
Use a larger buffer in fl_shortcut_label. Found by clang.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10250 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+1
-1
@@ -179,7 +179,7 @@ const char* fl_shortcut_label(unsigned int shortcut) {
|
||||
\see fl_shortcut_label(unsigned int shortcut)
|
||||
*/
|
||||
const char* fl_shortcut_label(unsigned int shortcut, const char **eom) {
|
||||
static char buf[20];
|
||||
static char buf[40];
|
||||
char *p = buf;
|
||||
if (eom) *eom = p;
|
||||
if (!shortcut) {*p = 0; return buf;}
|
||||
|
||||
Reference in New Issue
Block a user