From 6e5c472cf9641426c5425ea2f404e8908d76d63e Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 26 Nov 2022 01:35:50 +0100 Subject: Handle Fluid project settings better (#556) Fix allocation bug in Fl_String --- fluid/ExternalCodeEditor_WIN32.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fluid/ExternalCodeEditor_WIN32.cxx') diff --git a/fluid/ExternalCodeEditor_WIN32.cxx b/fluid/ExternalCodeEditor_WIN32.cxx index f226450e3..175a6e5b2 100644 --- a/fluid/ExternalCodeEditor_WIN32.cxx +++ b/fluid/ExternalCodeEditor_WIN32.cxx @@ -22,6 +22,7 @@ #include // fl_strdup() #include "ExternalCodeEditor_WIN32.h" +#include "fluid.h" #include // snprintf() #include @@ -358,8 +359,7 @@ const char* ExternalCodeEditor::tmp_filename() { static char path[512]; const char *tmpdir = create_tmpdir(); if ( !tmpdir ) return 0; - extern const char *code_file_name; // fluid's global - const char *ext = code_file_name; // e.g. ".cxx" + const char *ext = P.code_file_name; // e.g. ".cxx" _snprintf(path, sizeof(path), "%s\\%p%s", tmpdir, (void*)this, ext); path[sizeof(path)-1] = 0; return path; -- cgit v1.2.3