aboutsummaryrefslogtreecommitdiffstats
path: root/net/tsclient
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2006-05-01 15:35:10 +0800
committermarcus <marcus@FreeBSD.org>2006-05-01 15:35:10 +0800
commit5895aad1c031efbdec20bb98cabad4fb6adc9fb0 (patch)
tree11c9208f32dc02582512df83a1cc80358efdae15 /net/tsclient
parent5476e906d8fba4ac8b125cd9d5d4bd5b5a91e295 (diff)
downloadfreebsd-ports-gnome-5895aad1c031efbdec20bb98cabad4fb6adc9fb0.tar.gz
freebsd-ports-gnome-5895aad1c031efbdec20bb98cabad4fb6adc9fb0.tar.zst
freebsd-ports-gnome-5895aad1c031efbdec20bb98cabad4fb6adc9fb0.zip
NULL-terminate the argument list to g_build_path() to prevent a crash.
Reported by: Sean McNeil <sean@mcneil.com>
Diffstat (limited to 'net/tsclient')
-rw-r--r--net/tsclient/Makefile2
-rw-r--r--net/tsclient/files/patch-src_connect.c20
2 files changed, 21 insertions, 1 deletions
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");