From c38e8f3a80b8dcf819b8a9aa00bb1d0a27e55acc Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Mon, 21 Nov 2016 16:57:42 +0100 Subject: fixed compilation of the PDCurses frontend * a simple cast was missing due to C++ aliasing rules --- src/interface-curses/interface-curses.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/interface-curses/interface-curses.cpp b/src/interface-curses/interface-curses.cpp index 5e5b8d8..a66cdd0 100644 --- a/src/interface-curses/interface-curses.cpp +++ b/src/interface-curses/interface-curses.cpp @@ -1123,7 +1123,7 @@ InterfaceCurses::get_clipboard(const gchar *name, gsize *str_len) * At least we can null-terminate the return string in the * process (PDCurses does not guarantee that either). */ - str = g_malloc(length + 1); + str = (gchar *)g_malloc(length + 1); memcpy(str, contents, length); str[length] = '\0'; -- cgit v1.2.3