From 02ab0c4a2c929b6b88d30ae5bab74e36cb8cc043 Mon Sep 17 00:00:00 2001 From: Lauri Kasanen Date: Sat, 23 Aug 2014 09:10:50 +0000 Subject: 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 --- src/fl_shortcut.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/fl_shortcut.cxx b/src/fl_shortcut.cxx index c5d934427..f9defc2f9 100644 --- a/src/fl_shortcut.cxx +++ b/src/fl_shortcut.cxx @@ -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;} -- cgit v1.2.3