From 2141c63628a831d3f53dad7035c94028f8d0d629 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Tue, 21 Jul 2020 20:15:41 -0700 Subject: Implement + deploy fl_strdup() --- fluid/template_panel.fl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'fluid/template_panel.fl') diff --git a/fluid/template_panel.fl b/fluid/template_panel.fl index 5da887495..b0d5b9ff9 100644 --- a/fluid/template_panel.fl +++ b/fluid/template_panel.fl @@ -29,6 +29,9 @@ decl {\#include } {private local decl {\#include "../src/flstring.h"} {private local } +decl {\#include } {private local +} + decl {\#include } {private local } @@ -253,7 +256,7 @@ for (i = 0; i < num_files; i ++) { // Add the template to the browser... snprintf(filename, sizeof(filename), "%s/%s", path, files[i]->d_name); - template_browser->add(name, strdup(filename)); + template_browser->add(name, fl_strdup(filename)); } free(files[i]); -- cgit v1.2.3