aboutsummaryrefslogtreecommitdiff
path: root/dw/layout.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dw/layout.cc')
-rw-r--r--dw/layout.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/dw/layout.cc b/dw/layout.cc
index 5b3000c0..96653643 100644
--- a/dw/layout.cc
+++ b/dw/layout.cc
@@ -22,6 +22,7 @@
#include "core.hh"
+#include "dlib/dlib.h"
#include "../lout/msg.h"
#include "../lout/debug.hh"
#include "../lout/misc.hh"
@@ -735,7 +736,7 @@ void Layout::setAnchor (const char *anchor)
if (requestedAnchor)
free (requestedAnchor);
- requestedAnchor = anchor ? strdup (anchor) : NULL;
+ requestedAnchor = anchor ? dStrdup (anchor) : NULL;
updateAnchor ();
}
@@ -754,7 +755,7 @@ char *Layout::addAnchor (Widget *widget, const char* name, int y)
return NULL;
else {
Anchor *anchor = new Anchor ();
- anchor->name = strdup (name);
+ anchor->name = dStrdup (name);
anchor->widget = widget;
anchor->y = y;