1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fixed length of print buffer

This commit is contained in:
Steffen Vogel 2015-03-31 16:44:10 +02:00
parent 6b4fd61817
commit 5502d36ade

View file

@ -95,7 +95,7 @@ double hist_stddev(struct hist *h)
void hist_print(struct hist *h)
{ INDENT
char buf[h->length * 8];
char buf[(h->length + 1) * 8];
hist_dump(h, buf, sizeof(buf));
info("Total: %u values between %f and %f", h->total, h->low, h->high);