Skip to content
Commit edef8746 authored by Sören Meier's avatar Sören Meier Committed by Marius Vlad
Browse files

libbacklight: Fix backlight never gets initialized

In 913d7c15 stricter error checking was
introduced to the strtol call, which broke reading backlight values.
Since every sysfs backlight file ends with a newline.

As noted in a comment in the previous MR to prevent damaged pointers
after calling asprintf, replace every asprintf call with str_printf.

Previous-MR: !543



Signed-off-by: Sören Meier's avatarSören Meier <soerenmeier@livgood.ch>
parent 6ee6e76a
Loading
Loading
Loading
Pipeline #555872 passed with stages
in 2 minutes and 1 second
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment