From 5895aad1c031efbdec20bb98cabad4fb6adc9fb0 Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 1 May 2006 07:35:10 +0000 Subject: NULL-terminate the argument list to g_build_path() to prevent a crash. Reported by: Sean McNeil --- net/tsclient/Makefile | 2 +- net/tsclient/files/patch-src_connect.c | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 net/tsclient/files/patch-src_connect.c (limited to 'net') diff --git a/net/tsclient/Makefile b/net/tsclient/Makefile index 029088950f6e..3efe530b45f5 100644 --- a/net/tsclient/Makefile +++ b/net/tsclient/Makefile @@ -7,7 +7,7 @@ PORTNAME= tsclient PORTVERSION= 0.140 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net gnome MASTER_SITES= http://www.gnomepro.com/tsclient/ diff --git a/net/tsclient/files/patch-src_connect.c b/net/tsclient/files/patch-src_connect.c new file mode 100644 index 000000000000..660d3a5ac187 --- /dev/null +++ b/net/tsclient/files/patch-src_connect.c @@ -0,0 +1,20 @@ +--- src/connect.c.orig Mon May 1 03:33:13 2006 ++++ src/connect.c Mon May 1 03:33:26 2006 +@@ -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"); -- cgit