Skip to content

Commit

Permalink
Fix for strlcpy.
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasWM committed Nov 16, 2024
1 parent 5b83ff0 commit 82071d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fluid/application/history.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "application/history.h"
#include "fluid.h"
#include "ui/main_panel.h"
#include <FL/fl_string_functions.h>

using namespace fluid;

Expand Down Expand Up @@ -98,7 +99,7 @@ void application::History::add(const char *flname) {
i * sizeof(short_path[0]));

// Put the new file at the top...
strlcpy(full_path[0], absolute, sizeof(full_path[0]));
fl_strlcpy(full_path[0], absolute, sizeof(full_path[0]));

fl_filename_relative(short_path[0], sizeof(short_path[0]),
full_path[0]);
Expand Down

0 comments on commit 82071d6

Please sign in to comment.