mazepa~ linux userland keylogger |
| git clone https://github.com/djnnvx/mazepa.git |
| log | files | refs | archive | README |
| commit 840ce0120c1d79f161afa21d7388e2aa2e709ac8
parent dac4c0411a14ae8881ffaf98fd5e2f0ebdc9e479 Author: djnn <[email protected]> Date: Sun, 18 Jan 2026 17:10:24 +0900 fix(implant): fix DEBUG_LOG macro buffer sz Diffstat:
|
| 1 file changed, 6 insertions(+), 6 deletions(-) |
diff --git a/mazepa-implant/includes/implant.h b/mazepa-implant/includes/implant.h @@ -86,12 +86,12 @@ typedef struct implant_s { #include <syslog.h> #ifndef DEBUG_LOG -#define DEBUG_LOG(s, ...) \ - do { \ - char data[512] = {0}; \ - if (0 > snprintf(data, 255, s, ##__VA_ARGS__)) \ - _exit(1); \ - syslog(LOG_NOTICE, data); \ +#define DEBUG_LOG(s, ...) \ + do { \ + char data[512] = {0}; \ + if (0 > snprintf(data, sizeof(data) - 1, s, ##__VA_ARGS__)) \ + _exit(1); \ + syslog(LOG_NOTICE, data); \ } while (0) #endif |