From 920364cfa75a1270488c2e4a7b515f8e44ea7ca2 Mon Sep 17 00:00:00 2001 From: retoor Date: Fri, 29 Nov 2024 06:49:48 +0100 Subject: [PATCH] Update --- rmalloc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rmalloc.h b/rmalloc.h index dd653a7..c496f1b 100644 --- a/rmalloc.h +++ b/rmalloc.h @@ -185,7 +185,7 @@ void *rfree(void *obj) { char *rmalloc_lld_format(ulonglong num) { char res[100]; res[0] = 0; - sprintf(res, "%'lld", num); + sprintf(res, "%lld", num); char *resp = res; while (*resp) { if (*resp == ',') @@ -208,7 +208,7 @@ char *rmalloc_bytes_format(int factor, ulonglong num) { } char *rmalloc_stats() { - static char res[200]; + static char res[300]; res[0] = 0; setlocale(LC_NUMERIC, "en_US.UTF-8"); sprintf(res, "Memory usage: %s, %s (re)allocated, %s unqiue free'd, %s in use.", rmalloc_bytes_format(0, rmalloc_total_bytes_allocated),