summaryrefslogtreecommitdiff
path: root/bk_xhtml.c
diff options
context:
space:
mode:
Diffstat (limited to 'bk_xhtml.c')
-rw-r--r--bk_xhtml.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bk_xhtml.c b/bk_xhtml.c
index edab934..140e2dd 100644
--- a/bk_xhtml.c
+++ b/bk_xhtml.c
@@ -199,7 +199,7 @@ static xhtmlconfig xhtml_configure(paragraph *source)
} else if (!ustricmp(source->keyword, L"xhtml-chapter-numeric")) {
ret.fchapter.just_numbers = utob(uadv(source->keyword));
} else if (!ustricmp(source->keyword, L"xhtml-chapter-suffix")) {
- ret.fchapter.number_suffix = uadv(source->keyword);
+ ret.fchapter.number_suffix = ustrdup(uadv(source->keyword));
} else if (!ustricmp(source->keyword, L"xhtml-section-numeric")) {
wchar_t *p = uadv(source->keyword);
int n = 0;
@@ -229,7 +229,7 @@ static xhtmlconfig xhtml_configure(paragraph *source)
ret.fsect[i] = ret.fsect[ret.nfsect-1];
ret.nfsect = n+1;
}
- ret.fsect[n].number_suffix = p;
+ ret.fsect[n].number_suffix = ustrdup(p);
}
}
}