summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIan Douglas Scott <ian@iandouglasscott.com>2019-05-06 16:33:30 -0700
committerTimo Teräs <timo.teras@iki.fi>2019-05-28 13:07:50 +0300
commitd901444ec94a1874e19c8c30b805e2d17b61e6fc (patch)
treefc4e6fd73be73293eb3501dc2d20dae93793c975
parent84941a5967c099e29c172fe1c8f5741dc2bef159 (diff)
downloadapk-tools-d901444ec94a1874e19c8c30b805e2d17b61e6fc.tar.bz2
apk-tools-d901444ec94a1874e19c8c30b805e2d17b61e6fc.tar.xz
Fix compile with glibc
-rw-r--r--src/blob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blob.c b/src/blob.c
index 7c5bc95..c6c5029 100644
--- a/src/blob.c
+++ b/src/blob.c
@@ -725,7 +725,7 @@ size_t strlcpy(char *dst, const char *src, size_t size)
if (!size) return ret;
len = ret;
if (len >= size) len = size - 1;
- memcpy(dest, src, len);
+ memcpy(dst, src, len);
dst[len] = 0;
return ret;
}