diff options
author | marcus <marcus@FreeBSD.org> | 2006-05-01 15:35:10 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2006-05-01 15:35:10 +0800 |
commit | 5895aad1c031efbdec20bb98cabad4fb6adc9fb0 (patch) | |
tree | 11c9208f32dc02582512df83a1cc80358efdae15 /net | |
parent | 5476e906d8fba4ac8b125cd9d5d4bd5b5a91e295 (diff) | |
download | freebsd-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')
-rw-r--r-- | net/tsclient/Makefile | 2 | ||||
-rw-r--r-- | net/tsclient/files/patch-src_connect.c | 20 |
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"); |