diff options
Diffstat (limited to 'src/backlight/backlight.c')
-rw-r--r-- | src/backlight/backlight.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c index 6fcf584667..fd92135fc7 100644 --- a/src/backlight/backlight.c +++ b/src/backlight/backlight.c @@ -387,7 +387,7 @@ static int run(int argc, char *argv[]) { if (!sysname) return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Requires a subsystem and sysname pair specifying a backlight device."); - ss = strndupa(argv[2], sysname - argv[2]); + ss = strndupa_safe(argv[2], sysname - argv[2]); sysname++; |