aboutsummaryrefslogtreecommitdiff
path: root/src/proone-pack.c
diff options
context:
space:
mode:
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);