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:
parent
6e72a21271
commit
02ab0c4a2c
@ -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;}
|
||||
|
Loading…
Reference in New Issue
Block a user