diff --git a/src/pv/string.c b/src/pv/string.c index 86d986e..1e0a0f0 100644 --- a/src/pv/string.c +++ b/src/pv/string.c @@ -279,7 +279,7 @@ size_t pv_strwidth(const char *string, size_t bytes) } else { allocated_wide = malloc(wide_string_buffer_size); if (NULL == allocated_wide) { - perror("malloc"); + pv_perror("%s", "malloc"); if (NULL != allocated_raw) free(allocated_raw); return raw_bytes;