From 82071d674c447135999a4823acf6389be1baa22c Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 16 Nov 2024 02:20:47 +0100 Subject: [PATCH] Fix for strlcpy. --- fluid/application/history.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fluid/application/history.cxx b/fluid/application/history.cxx index 41c88c171e..de33cc871c 100644 --- a/fluid/application/history.cxx +++ b/fluid/application/history.cxx @@ -17,6 +17,7 @@ #include "application/history.h" #include "fluid.h" #include "ui/main_panel.h" +#include using namespace fluid; @@ -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]);