From 8912a59ac4f779a3d17cdaa83bbd9848048ed6f6 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Tue, 4 Nov 2014 07:50:33 +0100 Subject: [PATCH] fix json test. our fault, not the fault of storage --- src/json.test.c | 4 +++- storage | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/json.test.c b/src/json.test.c index 79ee2d2c9..73524f2e8 100644 --- a/src/json.test.c +++ b/src/json.test.c @@ -107,12 +107,14 @@ static void test_export_no_factions(CuTest * tc) { char buf[1024]; stream out = { 0 }; int err; + size_t len; mstream_init(&out); err = json_export(&out, EXPORT_FACTIONS); CuAssertIntEquals(tc, 0, err); out.api->rewind(out.handle); - out.api->read(out.handle, buf, sizeof(buf)); + len = out.api->read(out.handle, buf, sizeof(buf)); + buf[len]=0; CuAssertStrEquals(tc, "{}", strip(buf)); mstream_done(&out); } diff --git a/storage b/storage index 746d96d40..6acf2b4fe 160000 --- a/storage +++ b/storage @@ -1 +1 @@ -Subproject commit 746d96d405ddebcf6c882d5b198fd96df82abe11 +Subproject commit 6acf2b4fec360d7f681275ea3be77002fd2573c7