From a79378ff199f91003a7bd11633320d8318bf88b3 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Tue, 5 Sep 2017 16:12:34 +0200 Subject: [PATCH] mupdf: add missing 'with_libc' call Ref #2286 --- repos/libports/src/app/mupdf/main.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/repos/libports/src/app/mupdf/main.cc b/repos/libports/src/app/mupdf/main.cc index 147a2b1fb..ef411065a 100644 --- a/repos/libports/src/app/mupdf/main.cc +++ b/repos/libports/src/app/mupdf/main.cc @@ -182,7 +182,7 @@ class Pdf_view void handle_key(int ascii) { - pdfapp_onkey(&_pdfapp, ascii); + Libc::with_libc([&] () { pdfapp_onkey(&_pdfapp, ascii); }); } }; @@ -329,4 +329,7 @@ struct Main }; -void Libc::Component::construct(Libc::Env &env) { static Main main(env); } +void Libc::Component::construct(Libc::Env &env) +{ + Libc::with_libc([&] () { static Main main(env); }); +}