diff options
author | Alice Frosi <afrosi@redhat.com> | 2023-04-21 11:16:39 +0200 |
---|---|---|
committer | Alice Frosi <afrosi@redhat.com> | 2023-04-21 11:16:39 +0200 |
commit | 128f6d770844feb2369a5801454659caf64f6db7 (patch) | |
tree | 33d63a512cdc2d615a90ac10207636494d620dcb | |
parent | 847ffac9ba2bff6558ff6bb2cbec093a029828bc (diff) | |
download | seitan-128f6d770844feb2369a5801454659caf64f6db7.tar seitan-128f6d770844feb2369a5801454659caf64f6db7.tar.gz seitan-128f6d770844feb2369a5801454659caf64f6db7.tar.bz2 seitan-128f6d770844feb2369a5801454659caf64f6db7.tar.lz seitan-128f6d770844feb2369a5801454659caf64f6db7.tar.xz seitan-128f6d770844feb2369a5801454659caf64f6db7.tar.zst seitan-128f6d770844feb2369a5801454659caf64f6db7.zip |
operations: fix bug into the reference injection
-rw-r--r-- | operations.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/operations.c b/operations.c index a7ea5fb..39867b7 100644 --- a/operations.c +++ b/operations.c @@ -241,8 +241,8 @@ static void set_inject_fields(uint64_t id, void *data, const struct op *a, if (new->type == IMMEDIATE) resp->newfd = new->fd; else - memcpy(&resp->srcfd, (uint16_t *)data + old->fd_off, - sizeof(resp->srcfd)); + memcpy(&resp->newfd, (uint16_t *)data + new->fd_off, + sizeof(resp->newfd)); if (old->type == IMMEDIATE) resp->srcfd = old->fd; |