diff options
Diffstat (limited to 'dw/findtext.cc')
-rw-r--r-- | dw/findtext.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dw/findtext.cc b/dw/findtext.cc index 94b963ea..0a4d25c5 100644 --- a/dw/findtext.cc +++ b/dw/findtext.cc @@ -20,6 +20,7 @@ #include "core.hh" +#include "dlib/dlib.h" #include "../lout/debug.hh" #include "../lout/msg.h" @@ -87,7 +88,7 @@ FindtextState::Result FindtextState::search (const char *key, bool caseSens, newKey = true; if (this->key) free(this->key); - this->key = strdup (key); + this->key = dStrdup (key); this->caseSens = caseSens; if (nexttab) |