From 916ad16dfa5e61f79b8c16a6e5bb6a288f3f1015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= Date: Mon, 12 Jan 2026 19:04:08 +0000 Subject: Improve error code formatting For text output, allocate exactly the right buffer size. For JSON output, return error codes as an array, not just a concatinated text string. --- include/ql.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/ql.h b/include/ql.h index e1e2b11..bb4dcb6 100644 --- a/include/ql.h +++ b/include/ql.h @@ -149,7 +149,7 @@ bool ql_print_raster_image(ql_ctx_t ctx, const ql_status_t * status, // Caution: ql_decode_*() are *not* multi-thread safe const char *ql_decode_mode(const ql_status_t * status); -const char *ql_decode_errors(const ql_status_t * status); +const char *ql_decode_errors_human(const ql_status_t * status); const char *ql_decode_model(const ql_status_t * status); const char *ql_decode_media_type(const ql_status_t * status); #define QL_DECODE_MODEL 0x01 -- cgit v1.2.1