diff options
Diffstat (limited to 'src/Fl_Tooltip.cxx')
| -rw-r--r-- | src/Fl_Tooltip.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Tooltip.cxx b/src/Fl_Tooltip.cxx index 53fcdb18f..220e4603d 100644 --- a/src/Fl_Tooltip.cxx +++ b/src/Fl_Tooltip.cxx @@ -18,10 +18,10 @@ #include <FL/fl_draw.H> #include <FL/Fl_Menu_Window.H> #include <FL/Fl.H> +#include <FL/fl_string.h> #include "Fl_System_Driver.H" #include <stdio.h> -#include <string.h> // strdup() float Fl_Tooltip::delay_ = 1.0f; float Fl_Tooltip::hidedelay_ = 12.0f; @@ -379,7 +379,7 @@ void Fl_Widget::copy_tooltip(const char *text) { if (flags() & COPIED_TOOLTIP) free((void *)(tooltip_)); if (text) { set_flag(COPIED_TOOLTIP); - tooltip_ = strdup(text); + tooltip_ = fl_strdup(text); } else { clear_flag(COPIED_TOOLTIP); tooltip_ = (char *)0; |
