summaryrefslogtreecommitdiff
path: root/src/host.c
diff options
context:
space:
mode:
author諏訪子 <suwako@076.moe>2024-06-18 19:12:24 +0900
committer諏訪子 <suwako@076.moe>2024-06-18 19:12:24 +0900
commitb48f40f863c80c9f8394cfd5e8c3716191611888 (patch)
treea9ee6502cd5771bc0ed3a336e9b5cfdeaba86e63 /src/host.c
parent79285280a55c9a420947620ae20d327563f9ce78 (diff)
パッケージ情報の追加
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';
}