aboutsummaryrefslogtreecommitdiff
path: root/src/proone-pack.c
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2021-08-14 01:37:00 +1000
committerDavid Timber <mieabby@gmail.com>2021-08-14 01:37:00 +1000
commit10411cd9c6fc564485c7099874864283a40b10d2 (patch)
tree01ee6ce6801f8b5dbb3f9f5dc81fb96a1963785c /src/proone-pack.c
parent73799fe772152089a6c57aa339f08426cf3eaf11 (diff)
Fix bne ...
* Wrong args to prne_start_bin_rcb_compat() made ba with 1 missing arch (that of parent) in the next generation of exec. Blame eea0a9fbbf1aff1eac1f17914d5c116de98e1d93 * proone-pack: add os string to suffix of output files
Diffstat (limited to 'src/proone-pack.c')
-rw-r--r--src/proone-pack.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/proone-pack.c b/src/proone-pack.c
index ad2a75c..0078413 100644
--- a/src/proone-pack.c
+++ b/src/proone-pack.c
@@ -265,9 +265,11 @@ static bool do_rcb (const char *prefix) {
prne_free(out_path);
out_path = prne_alloc_str(
- prefix_len + 1 + strlen(arch_str));
+ prefix_len + 1 + strlen(os_str) + 1 + strlen(arch_str));
strcpy(out_path, prefix);
strcat(out_path, ".");
+ strcat(out_path, os_str);
+ strcat(out_path, ".");
strcat(out_path, arch_str);
fd = open(out_path, O_WRONLY | O_CREAT | O_TRUNC, 0755);