From 99c18f07d3a2270271efd79e6b5c728f5d160b02 Mon Sep 17 00:00:00 2001 From: Haroon Qureshi Date: Thu, 23 Oct 2025 08:15:57 -0700 Subject: [PATCH] Increase buffer size. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The smaller size is a warning/error on some targets: ``` error: ‘ bytes’ directive output may be truncated writing 6 bytes into a region of size between 0 and 15 ``` PiperOrigin-RevId: 823047552 Change-Id: Id66b5828cf84a512dffc452753f1881deb685584 --- src/engine/engine_print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/engine_print.c b/src/engine/engine_print.c index c83a5123..396d04da 100644 --- a/src/engine/engine_print.c +++ b/src/engine/engine_print.c @@ -344,7 +344,7 @@ static void printVector(const char* str, const mjtNum* data, int n, FILE* fp, // print human readable memory size static const char* memorySize(size_t nbytes) { - static mjTHREADLOCAL char message[20]; + static mjTHREADLOCAL char message[32]; int k = 1024; if (nbytes < k) {