Skip to content
Snippets Groups Projects
Commit c983fc09 authored by Sören Meier's avatar Sören Meier
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: wayland/weston!543



Signed-off-by: Sören Meier's avatarSören Meier <soerenmeier@livgood.ch>
parent 6ddfbd67
No related branches found
No related tags found
No related merge requests found
Pipeline #603526 failed
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