diff options
| author | Matthias Melcher <github@matthiasm.com> | 2024-12-21 12:26:20 -0600 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2024-12-21 12:26:20 -0600 |
| commit | 7d49c028039592cbd3240963311a7e9d2af72a17 (patch) | |
| tree | 979c8f29a13551145138335eb4c8371da02496db /fluid | |
| parent | 17d300215bc96dd3c0791bbcc776b71716bd4576 (diff) | |
FLUID: fix one more warning.
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/fluid.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fluid/fluid.cxx b/fluid/fluid.cxx index 75bddd39e..1bf7dc161 100644 --- a/fluid/fluid.cxx +++ b/fluid/fluid.cxx @@ -2010,7 +2010,7 @@ void update_history(const char *flname) { // Put the new file at the top... strlcpy(absolute_history[0], absolute, sizeof(absolute_history[0])); Fl_String fn = fl_filename_shortened(absolute_history[0], 48); - strncpy(relative_history[0], fn.c_str(), sizeof(relative_history[0])); + strncpy(relative_history[0], fn.c_str(), sizeof(relative_history[0]-1)); // Update the menu items as needed... for (i = 0; i < max_files; i ++) { |
