diff options
author | Nick Wellnhofer <wellnhofer@aevum.de> | 2015-06-07 17:33:25 +0200 |
---|---|---|
committer | Nick Wellnhofer <wellnhofer@aevum.de> | 2015-06-07 21:42:15 +0200 |
commit | e477618d40cb3db39667f06085c67cdfa33710a2 (patch) | |
tree | 5e95fb1e70e80c9d865207e266631cd211a62d53 /src | |
parent | abda63215d69b6245be853566481c09c4f015c14 (diff) |
Avoid strlen in xml.c
Diffstat (limited to 'src')
-rw-r--r-- | src/xml.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -13,12 +13,7 @@ static void escape_xml(cmark_strbuf *dest, const unsigned char *source, bufsize_t length) { - if (source != NULL) { - if (length < 0) - length = strlen((char *)source); - - houdini_escape_html0(dest, source, length, 0); - } + houdini_escape_html0(dest, source, length, 0); } struct render_state { |