Bug#354010: fix for segfault on connect-button.

Andreas Henriksson andreas at fjortis.info
Sun Mar 19 16:52:21 UTC 2006


Tags: patch
thanks

Hello!

I also saw the segfault directly after the connect button was pushed (on
amd64 etch). The following patch (also available from
http://fjortis.info/pub/debian/fix-tsclient.diff for those who would
like to wget it) seems to fix the problem.


diff -urip tsclient-0.140.orig/src/connect.c tsclient-0.140/src/connect.c
--- tsclient-0.140.orig/src/connect.c	2005-05-10 02:50:19.000000000 +0200
+++ tsclient-0.140/src/connect.c	2006-03-19 17:44:41.000000000 +0100
@@ -1288,7 +1288,7 @@ on_btnConnect_clicked                  (
   GtkWidget *main_window;
   rdp_file *rdp = NULL;
   gchar *home = tsc_home_path ();
-  gchar *filename = g_build_path ("/", home, "last.tsc");
+  gchar *filename = g_build_path ("/", home, "last.tsc", NULL);
 
   #ifdef TSCLIENT_DEBUG
   printf ("on_btnConnect_clicked\n");
@@ -1325,7 +1325,7 @@ on_btnQuit_clicked                     (
   GtkWidget *main_window;
   rdp_file *rdp_last = NULL;
   gchar *home = tsc_home_path ();
-  gchar *filename = g_build_path ("/", home, "last.tsc");
+  gchar *filename = g_build_path ("/", home, "last.tsc", NULL);
 
   #ifdef TSCLIENT_DEBUG
   printf ("on_btnQuit_clicked\n");





More information about the Pkg-gnome-maintainers mailing list