From 25f43e129fe3b3153a9bd25e5d14c6d935c7b490 Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Sat, 18 Apr 2026 21:46:16 +0100 Subject: [PATCH] Use pv_perror() rather than perror(), for consistency. --- src/pv/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;