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