From c76ea749c1c30599c31cd087c5c36f7d5819e6b0 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Thu, 8 Nov 2018 16:00:11 +0000 Subject: [PATCH] embryo_cc - warn - bigger buffer to avoid truncation warning --- src/bin/embryo/embryo_cc_sc2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/embryo/embryo_cc_sc2.c b/src/bin/embryo/embryo_cc_sc2.c index c416ad1d15..2bd34b8f71 100644 --- a/src/bin/embryo/embryo_cc_sc2.c +++ b/src/bin/embryo/embryo_cc_sc2.c @@ -144,7 +144,7 @@ plungefile(char *name, int try_currentpath, int try_includepaths) { for (i = 0; !result && (ptr = get_path(i)); i++) { - char path[PATH_MAX]; + char path[PATH_MAX + PATH_MAX + 128]; snprintf(path, sizeof (path), "%s/%s", ptr, name); path[sizeof path - 1] = '\0'; /* force '\0' termination */