diff options
Diffstat (limited to 'src/host.c')
-rw-r--r-- | src/host.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -54,7 +54,7 @@ const char *run_host_command(const char *command) { out = nout; - memcpy(out + outsize, buf, len); + memccpy(out + outsize, buf, sizeof(buf), len); outsize += len; out[outsize] = '\0'; } |