aboutsummaryrefslogtreecommitdiff
path: root/net-im/gaim-slashexec/files/patch-slashexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/gaim-slashexec/files/patch-slashexec.c')
-rw-r--r--net-im/gaim-slashexec/files/patch-slashexec.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/net-im/gaim-slashexec/files/patch-slashexec.c b/net-im/gaim-slashexec/files/patch-slashexec.c
new file mode 100644
index 000000000000..82a9ac2db336
--- /dev/null
+++ b/net-im/gaim-slashexec/files/patch-slashexec.c
@@ -0,0 +1,22 @@
+--- src/slashexec.c.orig Tue Aug 2 08:52:03 2005
++++ src/slashexec.c Tue Jan 3 15:52:55 2006
+@@ -55,6 +55,9 @@
+ gchar buffer[MAX_COMMAND_LEN], **argv;
+ GError *error;
+ gint argc;
++ gchar *standard_output = NULL, *standard_error = NULL;
++ GSpawnFlags Gflags;
++ Gflags = G_SPAWN_SEARCH_PATH;
+ error = NULL;
+ /* TODO: need to properly escape cmd at some stage*/
+ gaim_debug_info("slashexec", "Executing: %s\n", cmd);
+@@ -70,9 +73,6 @@
+ g_strfreev(argv);
+ return NULL;
+ }
+- gchar *standard_output = NULL, *standard_error = NULL;
+- GSpawnFlags Gflags;
+- Gflags = G_SPAWN_SEARCH_PATH;
+ if (!g_spawn_sync (NULL, argv, NULL, Gflags,
+ NULL, NULL, &standard_output, &standard_error, NULL, &error)) {
+ if (buffer)