summaryrefslogtreecommitdiff
path: root/fluid
diff options
context:
space:
mode:
Diffstat (limited to 'fluid')
-rw-r--r--fluid/Shortcut_Button.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/fluid/Shortcut_Button.cxx b/fluid/Shortcut_Button.cxx
index fabe1ea11..517eee624 100644
--- a/fluid/Shortcut_Button.cxx
+++ b/fluid/Shortcut_Button.cxx
@@ -27,6 +27,7 @@
#include <FL/Fl_Window.H>
#include <FL/fl_draw.H>
#include <FL/Fl_Menu_.H>
+#include <FL/fl_string_functions.h>
#include "../src/flstring.h"
/** \class Shortcut_Button
@@ -299,7 +300,7 @@ int Fluid_Coord_Input::eval(uchar *&s, int prio) const {
int Fluid_Coord_Input::eval(const char *s) const
{
// duplicate the text, so we can modify it
- uchar *buf = (uchar*)strdup(s);
+ uchar *buf = (uchar*)fl_strdup(s);
uchar *src = buf, *dst = buf;
// remove all whitespace to make the parser easier
for (;;) {