diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2019-01-21 17:14:52 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2019-01-21 17:14:52 +0100 |
commit | 6adad1f243122a31fffc1ff99224ce88939877ff (patch) | |
tree | 4dea5125e7d4fe7a4b71e8e4af155e1831851024 | |
parent | 3408232b6cbb8b2ae5fc5ad8b9a3648b3b4391c2 (diff) | |
parent | 04fb98e9543b096d730225a2db95ef3f28d7303a (diff) |
Merge branch 'master' of ssh://git.lan:/git/bufflow
-rw-r--r-- | exec_crypter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/exec_crypter.c b/exec_crypter.c index 2ce4580..4a85deb 100644 --- a/exec_crypter.c +++ b/exec_crypter.c @@ -169,7 +169,8 @@ int main(int argc, char **argv) { printf("\nExtracting payload size %u\n", _exec_payload_size); - snprintf(exec_path, sizeof exec_path, "%s_", new_path); + snprintf(exec_path, sizeof exec_path, "%.*s_", + (int) sizeof exec_path - 2, new_path); exec_fd = open(exec_path, O_RDWR | O_CREAT, S_IRWXU | S_IRWXG | S_IRWXO); |