diff options
| author | Matthias Melcher <github@matthiasm.com> | 2024-12-28 17:23:49 -0500 |
|---|---|---|
| committer | Matthias Melcher <github@matthiasm.com> | 2024-12-28 17:23:55 -0500 |
| commit | 4ce09ae47a76a119f6756423b2e8b6a70b4d5319 (patch) | |
| tree | 7970d90175a64097635d9a74f6ac491794282623 | |
| parent | 050cbabdfe2fdbd1337736f017456012e2437b2d (diff) | |
Fluid: Fix file history text.
| -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 5d738190e..766721e65 100644 --- a/fluid/fluid.cxx +++ b/fluid/fluid.cxx @@ -2005,7 +2005,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]-1)); + strncpy(relative_history[0], fn.c_str(), sizeof(relative_history[0])); // Update the menu items as needed... for (i = 0; i < max_files; i ++) { |
