diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-11-24 18:53:40 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-11-24 19:53:23 +0100 |
| commit | 403981a2937742d04988d0891bcb71963372767c (patch) | |
| tree | 00e67953318a407f871b672812cf6fefb8dbc219 /FL | |
| parent | d3d051483ada335b24e2033a1a6b3883b684c0f9 (diff) | |
Fix compiler warning (g++ 14) [-Wstringop-overflow]
New compiler warning detected by g++ 14.2.0 building with CMake
in Release mode. This *temporary* fix suppresses the warning but uses
even larger fixed size buffers.
Todo: these nasty warnings caused by using fixed buffer sizes should
be removed by using std::string in FLTK 1.5.0.
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Help_View.H | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FL/Fl_Help_View.H b/FL/Fl_Help_View.H index 2c73926c0..35fd44ee0 100644 --- a/FL/Fl_Help_View.H +++ b/FL/Fl_Help_View.H @@ -225,7 +225,7 @@ class FL_EXPORT Fl_Help_View : public Fl_Group { // Help viewer widget atargets_; ///< Allocated targets Fl_Help_Target *targets_; ///< Targets - char directory_[FL_PATH_MAX];///< Directory for current file + char directory_[2 * FL_PATH_MAX + 15]; ///< Directory for current file char filename_[FL_PATH_MAX]; ///< Current filename int topline_, ///< Top line in document leftline_, ///< Lefthand position |
