diff options
Diffstat (limited to 'src/filename_absolute.cxx')
| -rw-r--r-- | src/filename_absolute.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/filename_absolute.cxx b/src/filename_absolute.cxx index 67beb50c3..e39da321d 100644 --- a/src/filename_absolute.cxx +++ b/src/filename_absolute.cxx @@ -22,6 +22,7 @@ #include <FL/filename.H> #include <FL/Fl.H> +#include <FL/fl_string.h> #include "Fl_System_Driver.H" #include <stdlib.h> #include "flstring.h" @@ -162,7 +163,7 @@ Fl_System_Driver::filename_relative(char *to, // O - Relative filename char *newslash; // Directory separator const char *slash; // Directory separator char *cwd = 0L, *cwd_buf = 0L; - if (base) cwd = cwd_buf = strdup(base); + if (base) cwd = cwd_buf = fl_strdup(base); // return if "from" is not an absolute path if (from[0] == '\0' || !isdirsep(*from)) { |
