summaryrefslogtreecommitdiff
path: root/src/bin/embryo/embryo_cc_sc2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/embryo/embryo_cc_sc2.c')
-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 */