Revert "Fix a tiny bug that could cause a crash"

This reverts commit ec0023c347.
This commit is contained in:
Richard Hughes 2009-07-05 09:34:54 +01:00
parent cda6d85a9d
commit 5994922a0a

View file

@ -175,8 +175,8 @@ dkp_backlight_set_brightness (DkpBacklight *backlight, guint value, DBusGMethodI
}
/* write chunk */
value_text = g_strdup_printf ("%u", value);
len = strlen (value_text);
value_text = g_strdup_printf ("%u", value);
egg_debug ("Writing '%s' to '%s'", value_text, path);
wrote = write (fd, value_text, len);
if (wrote < len) {