summaryrefslogtreecommitdiff
path: root/src/host.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/host.c')
-rw-r--r--src/host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host.c b/src/host.c
index 010af9e..03b2f2c 100644
--- a/src/host.c
+++ b/src/host.c
@@ -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';
}