summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLauri Kasanen <cand@gmx.com>2014-08-23 09:10:50 +0000
committerLauri Kasanen <cand@gmx.com>2014-08-23 09:10:50 +0000
commit02ab0c4a2c929b6b88d30ae5bab74e36cb8cc043 (patch)
treea10f2b46adb89e3f1b18b4efca8ac837d70dab89 /src
parent6e72a212719ef9e53ac625694f1874c81882a10c (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/fl_shortcut.cxx2
1 files changed, 1 insertions, 1 deletions
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;}