From 706b3321d9d2e143e2d93a04bd1748f9ffa33f48 Mon Sep 17 00:00:00 2001 From: Jakub Kucharski Date: Tue, 7 Jun 2016 16:54:26 +0200 Subject: [PATCH] cpp: pass len to GooString constructor in detail::ustring_to_unicode_GooString() Bug 96426 --- cpp/poppler-private.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/poppler-private.cpp b/cpp/poppler-private.cpp index 4362319..87aa3b4 100644 --- a/cpp/poppler-private.cpp +++ b/cpp/poppler-private.cpp @@ -112,6 +112,6 @@ GooString* detail::ustring_to_unicode_GooString(const ustring &str) ba[i * 2 + 2] = ((*me >> 8) & 0xff); ba[i * 2 + 3] = (*me & 0xff); } - GooString *goo = new GooString(&ba[0]); + GooString *goo = new GooString(&ba[0], len); return goo; } -- 2.8.3