summaryrefslogtreecommitdiffstats
path: root/lib/pthread_safe.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pthread_safe.c')
-rw-r--r--lib/pthread_safe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pthread_safe.c b/lib/pthread_safe.c
index c4ab9679..e2c7cdc0 100644
--- a/lib/pthread_safe.c
+++ b/lib/pthread_safe.c
@@ -299,7 +299,8 @@ errtox(strerror_t* st, int err, int len, int want)
if ((len + ql) <= qfs_left(&qfs)) /* accounting for "quotes" */
qfs_printf(&qfs, "%s%s%s", q, errm, q) ;
else
- qfs_printf(&qfs, "%s%.*s...%s", q, qfs_left(&qfs) - ql - 3, errm, q) ;
+ qfs_printf(&qfs, "%s%.*s...%s",
+ q, (int)(qfs_left(&qfs) - ql - 3), errm, q) ;
/* -ve precision is ignored ! */
} ;