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:
Lauri Kasanen 2014-08-23 09:10:50 +00:00
parent 6e72a21271
commit 02ab0c4a2c

View File

@ -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;}