mirror of
https://github.com/fltk/fltk.git
synced 2025-12-10 12:51:06 +08:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user