summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-08 16:00:11 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-11-09 11:44:00 +0000
commitc76ea749c1c30599c31cd087c5c36f7d5819e6b0 (patch)
tree2e267e83b0ac321cd26ea6f1421281dd20640bc1
parent34b45b235c9606a6fa4f0628a2420e8b98cef1de (diff)
embryo_cc - warn - bigger buffer to avoid truncation warning
-rw-r--r--src/bin/embryo/embryo_cc_sc2.c2
1 files changed, 1 insertions, 1 deletions
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)
144 { 144 {
145 for (i = 0; !result && (ptr = get_path(i)); i++) 145 for (i = 0; !result && (ptr = get_path(i)); i++)
146 { 146 {
147 char path[PATH_MAX]; 147 char path[PATH_MAX + PATH_MAX + 128];
148 148
149 snprintf(path, sizeof (path), "%s/%s", ptr, name); 149 snprintf(path, sizeof (path), "%s/%s", ptr, name);
150 path[sizeof path - 1] = '\0'; /* force '\0' termination */ 150 path[sizeof path - 1] = '\0'; /* force '\0' termination */