From 38e50a076dfbc6bba0c9d219ee63e0f251ebae5c Mon Sep 17 00:00:00 2001 From: Tupakaveli Date: Tue, 20 Aug 2019 17:57:01 +0930 Subject: [PATCH] Fix main10 bug --- src/config.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config.c b/src/config.c index ee420c0ed..1562e7296 100644 --- a/src/config.c +++ b/src/config.c @@ -98,6 +98,7 @@ static int parsePrefix(char *line, char *prefix) if (colpos && colpos != line) { // copy the name and the value strncpy(prefix, line, colpos - line); + prefix[colpos - line] = 0; return 1; } else {