summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2009-07-03 16:56:44 +0100
committerRichard Hughes <richard@hughsie.com>2009-07-03 16:56:44 +0100
commitec0023c3470058bf8b770c33bcbd9253d440bf33 (patch)
tree6fffb7e14976f7bbe2e8f3a438ba5be92e1b11ed
parentfec78d3fbb440ff0abbf095edd63d8c1d25cbbeb (diff)
Fix a tiny bug that could cause a crash
-rw-r--r--src/dkp-backlight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dkp-backlight.c b/src/dkp-backlight.c
index 8915447..a602164 100644
--- a/src/dkp-backlight.c
+++ b/src/dkp-backlight.c
@@ -175,8 +175,8 @@ dkp_backlight_set_brightness (DkpBacklight *backlight, guint value, DBusGMethodI
}
/* write chunk */
- len = strlen (value_text);
value_text = g_strdup_printf ("%u", value);
+ len = strlen (value_text);
egg_debug ("Writing '%s' to '%s'", value_text, path);
wrote = write (fd, value_text, len);
if (wrote < len) {