summaryrefslogtreecommitdiff
path: root/dw/hyphenator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dw/hyphenator.cc')
-rw-r--r--dw/hyphenator.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/dw/hyphenator.cc b/dw/hyphenator.cc
index 739590dc..1530074f 100644
--- a/dw/hyphenator.cc
+++ b/dw/hyphenator.cc
@@ -21,6 +21,7 @@
#include "hyphenator.hh"
+#include "dlib/dlib.h"
#include "../lout/misc.hh"
#include "../lout/unicode.hh"
#include <limits.h>
@@ -395,7 +396,7 @@ TrieBuilder::~TrieBuilder ()
void TrieBuilder::insert (const char *key, const char *value)
{
dataList->increase ();
- dataList->getLastRef ()->key = (unsigned char *) strdup(key);
+ dataList->getLastRef ()->key = (unsigned char *) dStrdup(key);
dataList->getLastRef ()->value = dataZone->strdup (value);
}