From 162b409c2c8d3e33e6dbc7543862a9b82baaa44d Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 15 Jul 2011 17:07:09 +0200 Subject: bugfix: misaddressing in config handler In theory, can cause segfault, in practice this is extremely unlikely Thanks to Marcin for alertig me. --- runtime/rsconf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/rsconf.c') diff --git a/runtime/rsconf.c b/runtime/rsconf.c index 0ccf2d57..f369dadf 100644 --- a/runtime/rsconf.c +++ b/runtime/rsconf.c @@ -339,7 +339,7 @@ parser_errmsg(char *fmt, ...) va_start(ap, fmt); if(vsnprintf(errBuf, sizeof(errBuf), fmt, ap) == sizeof(errBuf)) - errBuf[1024] = '\0'; + errBuf[1023] = '\0'; errmsg.LogError(0, RS_RET_CONF_PARSE_ERROR, "error during parsing file %s, on or before line %d: %s", cnfcurrfn, yylineno, errBuf); -- cgit v1.2.3