aboutsummaryrefslogtreecommitdiff
path: root/src/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/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/pack.c')
-rw-r--r--src/pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pack.c b/src/pack.c
index b1e6a36..fa0d19c 100644
--- a/src/pack.c
+++ b/src/pack.c
@@ -309,7 +309,7 @@ static ssize_t pack_rcb_dvread_f (
nb_bin_loc = ctx->buf + ctx->buf_len + 6;
ctx->buf_len += 8;
- if (ctx->self.arch != PRNE_ARCH_NONE) {
+ if (prne_bin_host_inrange(&ctx->self)) {
ctx->buf[ctx->buf_len + 0] = 0;
ctx->buf[ctx->buf_len + 1] = 0;
ctx->buf[ctx->buf_len + 2] = (uint8_t)ctx->self.os;