mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-01-29 07:40:32 +01:00
Fix a tiny bug that could cause a crash
This commit is contained in:
parent
fec78d3fbb
commit
ec0023c347
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue