From 953dd5a34f27f0fbc87dc4a50ad30d4ba842e6e6 Mon Sep 17 00:00:00 2001 From: Milo Yip Date: Mon, 8 Feb 2016 01:45:12 +0800 Subject: [PATCH] Fix OStreamWrapper test --- test/unittest/ostreamwrappertest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unittest/ostreamwrappertest.cpp b/test/unittest/ostreamwrappertest.cpp index a94b980..b1d1cd8 100644 --- a/test/unittest/ostreamwrappertest.cpp +++ b/test/unittest/ostreamwrappertest.cpp @@ -27,7 +27,7 @@ template static void TestStringStream() { typedef typename StringStreamType::char_type Ch; - Ch s[] = { 'A', 'B', 'C' }; + Ch s[] = { 'A', 'B', 'C', '\0' }; StringStreamType oss(s); BasicOStreamWrapper os(oss); for (size_t i = 0; i < 3; i++)