Commit 14efd56f by Juliusz Chroboczek

Reduce buffer size in format_thousand.

1 parent a94856c4
Showing 1 changed file with 2 additions and 2 deletions
......@@ -298,10 +298,10 @@ format_eui64(const unsigned char *eui)
const char *
format_thousands(unsigned int value)
{
static char buf[4][30];
static char buf[4][15];
static int i = 0;
i = (i + 1) % 4;
snprintf(buf[i], 30, "%d.%.3d", value / 1000, value % 1000);
snprintf(buf[i], 15, "%d.%.3d", value / 1000, value % 1000);
return buf[i];
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!