diff --git a/src/utils_subst.c b/src/utils_subst.c
index 640007c705e125876e520fa87a331ecb389b0c41..a49f6db56e8b75307e7790ae1601edb08c2f6b10 100644 (file)
--- a/src/utils_subst.c
+++ b/src/utils_subst.c
|| (NULL == replacement))
return NULL;
- sstrncpy (buf_ptr, string, (off1 + 1 > buflen) ? buflen : off1 + 1);
+ sstrncpy (buf_ptr, string,
+ ((size_t)off1 + 1 > buflen) ? buflen : (size_t)off1 + 1);
buf_ptr += off1;
len -= off1;