summaryrefslogtreecommitdiff
path: root/src/form.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/form.cc')
-rw-r--r--src/form.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/form.cc b/src/form.cc
index 8234c0a3..93bd4864 100644
--- a/src/form.cc
+++ b/src/form.cc
@@ -19,6 +19,7 @@
#include "dw/core.hh"
#include "dw/textblock.hh"
+#include "dlib/dlib.h"
#include "misc.h"
#include "msg.h"
#include "prefs.h"
@@ -829,7 +830,7 @@ void Html_tag_open_optgroup(DilloHtml *html, const char *tag, int tagsize)
if (!label) {
BUG_MSG("<optgroup> requires label attribute.");
- label = strdup("");
+ label = dStrdup("");
}
DilloHtmlOptgroup *opt =