aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2020-05-03 17:56:37 -0400
committerJason Woodward2020-05-03 17:56:37 -0400
commitd3226dedca8727810c9855c573e16ecabc11d471 (patch)
treecb1ccc19b84a2bc611c8020b8b9a8ed86e1d781d
parentf7862745a1e4bd8b045b1f5eae7b64bd94d4f461 (diff)
downloadslapt-get-d3226dedca8727810c9855c573e16ecabc11d471.tar.gz
fix 32bit size_t printf0.11.1
-rw-r--r--src/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.c b/src/common.c
index 198bc1b..6baabc0 100644
--- a/src/common.c
+++ b/src/common.c
@@ -570,7 +570,7 @@ size_t slapt_strlcpy(char *dst, const char *src, size_t size)
size_t src_length = strnlen (src, size);
if (src_length >= size) {
if (src_length != size) {
- fprintf(stderr, "Truncating %s [%ld to %ld]\n", src, size, src_length);
+ fprintf(stderr, "Truncating %s [%zd to %zd]\n", src, size, src_length);
exit(EXIT_FAILURE);
}
memcpy (dst, src, size);