diff options
| author | Lauri Kasanen <cand@gmx.com> | 2014-08-23 09:10:50 +0000 |
|---|---|---|
| committer | Lauri Kasanen <cand@gmx.com> | 2014-08-23 09:10:50 +0000 |
| commit | 02ab0c4a2c929b6b88d30ae5bab74e36cb8cc043 (patch) | |
| tree | a10f2b46adb89e3f1b18b4efca8ac837d70dab89 /src | |
| parent | 6e72a212719ef9e53ac625694f1874c81882a10c (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.cxx | 2 |
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;} |
