From 2e4bf05e21cc2c5b0559b0a529ab97e4fdcf5bbe Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Fri, 1 Jan 2021 19:31:05 +0000 Subject: [PATCH] Avoid possible truncation of path strings when writing config file. --- driver/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver/main.c b/driver/main.c index ffb9cde62..7fbc52f24 100644 --- a/driver/main.c +++ b/driver/main.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000-2020 Stephen Williams (steve@icarus.com) + * Copyright (c) 2000-2021 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -184,7 +184,7 @@ int verbose_flag = 0; FILE *fp; char line[MAXSIZE]; -char tmp[MAXSIZE]; +char tmp[MAXSIZE+24]; static char ivl_root[MAXSIZE];