From e78605556770c19c7a2e52fbc67c1a89718ba9de Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 14 Aug 2017 17:23:05 +0200 Subject: osmux: Slightly improve output format of osmux_snprintf The buffer for osmux_test is increased as the former doesn't seem to be able to cope with the whole output. Change-Id: Ic838dd9d7ad89b4510ccfa58c0390c69a075b616 --- src/osmux.c | 5 ++++- tests/osmux/osmux_test.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/osmux.c b/src/osmux.c index 2481d6a..b3c43e2 100644 --- a/src/osmux.c +++ b/src/osmux.c @@ -877,12 +877,15 @@ static int osmux_snprintf_payload(char *buf, size_t size, int ret, i; int len = size, offset = 0; + ret = snprintf(buf+offset, len, "[ "); + SNPRINTF_BUFFER_SIZE(ret, size, len, offset); + for (i=0; i