From a72d5736e033f44cd191754774a85e2e27363acf Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 21 Apr 2006 20:24:04 +0000 Subject: [PATCH] * Fixed a segfault in the C++ bindings. Vieux porc ! --- cpp/caca++.cpp | 2 +- cpp/caca++.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/caca++.cpp b/cpp/caca++.cpp index 307bdd7..f1c4237 100644 --- a/cpp/caca++.cpp +++ b/cpp/caca++.cpp @@ -81,7 +81,7 @@ int Caca::set_display_title(char const *s) int Caca::get_event(unsigned int g, Event *n, int aa) { - return caca_get_event(dp, g, n->e, aa); + return caca_get_event(dp, g, &n->e, aa); } unsigned int Caca::get_mouse_x() diff --git a/cpp/caca++.h b/cpp/caca++.h index 47d4e4e..28e72ed 100644 --- a/cpp/caca++.h +++ b/cpp/caca++.h @@ -46,7 +46,7 @@ class Event } type; protected: - caca_event *e; + caca_event e; }; class Caca