Skip to content

Commit

Permalink
FLUID: fix one more warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasWM committed Dec 21, 2024
1 parent 17d3002 commit 7d49c02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fluid/fluid.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ++) {
Expand Down

0 comments on commit 7d49c02

Please sign in to comment.