diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-04-16 12:18:46 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-04-16 12:18:46 +0200 |
commit | 4b83db7400bb3c23ed3b2a4924438dd8a342973b (patch) | |
tree | 2b5f1d3259aa24983d37ba9e5fb76913196b8e20 /lib/alloc | |
parent | 402f5b4777897f0400a6a3e710452f6f64edb7d2 (diff) |
Print errno error when bufalloc() fails
Diffstat (limited to 'lib/alloc')
-rw-r--r-- | lib/alloc/bufalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/alloc/bufalloc.c b/lib/alloc/bufalloc.c index c688ab1..264f242 100644 --- a/lib/alloc/bufalloc.c +++ b/lib/alloc/bufalloc.c @@ -5,6 +5,6 @@ void * bufalloc(void *p, size_t n, size_t m) { if ((p = bufalloc_noterm(p, n, m)) == nullptr) - err(__func__); + err("%s:", __func__); return p; } |