[gnome-control-center] color: Ensure the calibrate program gets run correctly
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] color: Ensure the calibrate program gets run correctly
- Date: Fri, 2 Sep 2011 14:08:18 +0000 (UTC)
commit 6ba681b2a7440dd0bfb64420730dbc89ab5c4f10
Author: Richard Hughes <richard hughsie com>
Date: Fri Sep 2 15:07:09 2011 +0100
color: Ensure the calibrate program gets run correctly
We were not NULL-terminating the argv we were about to spawn, which caused it to
fail with 'bad address' for some people.
panels/color/cc-color-panel.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c
index 30dfbfe..17769e0 100644
--- a/panels/color/cc-color-panel.c
+++ b/panels/color/cc-color-panel.c
@@ -252,6 +252,7 @@ gcm_prefs_calibrate_cb (GtkWidget *widget, CcColorPanel *prefs)
g_ptr_array_add (argv, g_strdup (cd_device_get_id (priv->current_device)));
g_ptr_array_add (argv, g_strdup ("--parent-window"));
g_ptr_array_add (argv, g_strdup_printf ("%i", xid));
+ g_ptr_array_add (argv, NULL);
ret = g_spawn_async (NULL, (gchar**) argv->pdata, NULL, 0,
NULL, NULL, NULL, &error);
if (!ret)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]