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/file.cxx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'fluid/file.cxx') diff --git a/fluid/file.cxx b/fluid/file.cxx index dd2ef345c..30335a232 100644 --- a/fluid/file.cxx +++ b/fluid/file.cxx @@ -25,6 +25,7 @@ #include #include "alignment_panel.h" #include +#include #include "Fl_Widget_Type.h" //////////////////////////////////////////////////////////////// @@ -405,19 +406,19 @@ static void read_children(Fl_Type *p, int paste) { goto CONTINUE; } if (!strcmp(c,"i18n_function")) { - i18n_function = strdup(read_word()); + i18n_function = fl_strdup(read_word()); goto CONTINUE; } if (!strcmp(c,"i18n_file")) { - i18n_file = strdup(read_word()); + i18n_file = fl_strdup(read_word()); goto CONTINUE; } if (!strcmp(c,"i18n_set")) { - i18n_set = strdup(read_word()); + i18n_set = fl_strdup(read_word()); goto CONTINUE; } if (!strcmp(c,"i18n_include")) { - i18n_include = strdup(read_word()); + i18n_include = fl_strdup(read_word()); goto CONTINUE; } if (!strcmp(c,"i18n_type")) @@ -431,13 +432,13 @@ static void read_children(Fl_Type *p, int paste) { goto CONTINUE; } if (!strcmp(c,"header_name")) { - if (!header_file_set) header_file_name = strdup(read_word()); + if (!header_file_set) header_file_name = fl_strdup(read_word()); else read_word(); goto CONTINUE; } if (!strcmp(c,"code_name")) { - if (!code_file_set) code_file_name = strdup(read_word()); + if (!code_file_set) code_file_name = fl_strdup(read_word()); else read_word(); goto CONTINUE; } -- cgit v1.2.3