Skip to content
Unverified Commit 9b562437 authored by Chuhong Yuan's avatar Chuhong Yuan Committed by Maxime Ripard
Browse files

drm/modes: Fix unterminated strncpy



strncpy(dest, src, strlen(src)) leads to unterminated
dest, which is dangerous.
Fix it by using strscpy.

Fixes: 3aeeb13d ("drm/modes: Support modes names on the command line")
Signed-off-by: default avatarChuhong Yuan <hslester96@gmail.com>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190731020140.3529-1-hslester96@gmail.com
parent 58540594
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment