From 6135e9b953747365358f7f2e23e53cc0e4a701b2 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Sat, 12 Mar 2016 11:29:55 +0100 Subject: Don't use variable length arrays They're not supported by MSVC. --- src/xml.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/xml.c') diff --git a/src/xml.c b/src/xml.c index fc33886..12bd629 100644 --- a/src/xml.c +++ b/src/xml.c @@ -9,6 +9,8 @@ #include "buffer.h" #include "houdini.h" +#define BUFFER_SIZE 100 + // Functions to convert cmark_nodes to XML strings. static void escape_xml(cmark_strbuf *dest, const unsigned char *source, @@ -34,7 +36,6 @@ static int S_render_node(cmark_node *node, cmark_event_type ev_type, bool literal = false; cmark_delim_type delim; bool entering = (ev_type == CMARK_EVENT_ENTER); - const size_t BUFFER_SIZE = 100; char buffer[BUFFER_SIZE]; if (entering) { -- cgit v1.2.3