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");


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to