From ec0023c3470058bf8b770c33bcbd9253d440bf33 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Fri, 3 Jul 2009 16:56:44 +0100 Subject: Fix a tiny bug that could cause a crash --- src/dkp-backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3