From dda054aa271feb73201c3b26392a052c7e5c6b37 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Tue, 6 Dec 2016 18:41:30 +0100 Subject: [PATCH] os: fix null termination in fb connection --- repos/os/include/framebuffer_session/connection.h | 1 + 1 file changed, 1 insertion(+) diff --git a/repos/os/include/framebuffer_session/connection.h b/repos/os/include/framebuffer_session/connection.h index fd86684010..38202b5351 100644 --- a/repos/os/include/framebuffer_session/connection.h +++ b/repos/os/include/framebuffer_session/connection.h @@ -41,6 +41,7 @@ class Framebuffer::Connection : public Genode::Connection, enum { ARGBUF_SIZE = 128 }; char argbuf[ARGBUF_SIZE]; + argbuf[0] = 0; /* donate ram quota for storing server-side meta data */ Arg_string::set_arg(argbuf, sizeof(argbuf), "ram_quota", RAM_QUOTA);