aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2016-11-21 16:57:42 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2016-11-21 16:57:42 +0100
commitc38e8f3a80b8dcf819b8a9aa00bb1d0a27e55acc (patch)
tree0c17b490d361a1f4321e81d67cf17df8c56ee389
parentbece75c1b7d2e67cda9850ca42a9cd8011658d21 (diff)
downloadsciteco-c38e8f3a80b8dcf819b8a9aa00bb1d0a27e55acc.tar.gz
fixed compilation of the PDCurses frontend
* a simple cast was missing due to C++ aliasing rules
-rw-r--r--src/interface-curses/interface-curses.cpp2
1 files changed, 1 insertions, 1 deletions
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';