From 6ae33c16cf9e37fda85d70c78b3c2779eb8ca21a Mon Sep 17 00:00:00 2001 From: iphydf Date: Fri, 20 Jan 2017 21:16:55 +0000 Subject: Add VLA compatibility macro for C89-ish compilers. --- other/bootstrap_daemon/src/log.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'other/bootstrap_daemon/src') diff --git a/other/bootstrap_daemon/src/log.c b/other/bootstrap_daemon/src/log.c index 7431838c..a0517528 100644 --- a/other/bootstrap_daemon/src/log.c +++ b/other/bootstrap_daemon/src/log.c @@ -26,6 +26,8 @@ #include "global.h" +#include "../../../toxcore/ccompat.h" + #include #include #include @@ -94,7 +96,7 @@ static void log_syslog(LOG_LEVEL level, const char *format, va_list args) return; } - char buf[size + 1]; + VLA(char, buf, size + 1); vsnprintf(buf, size + 1, format, args); syslog(level_syslog(level), "%s", buf); -- cgit v1.2.3