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),