diff options
| author | 2019-07-31 10:01:40 +0800 | |
|---|---|---|
| committer | 2019-08-03 12:03:01 +0200 | |
| commit | 9b562437d388582f5463a4c3f60ee97a2d4d8d58 (patch) | |
| tree | 1041e65119331850ae8a872449a421130c9b3536 /samples/git:/ssh:/git@git.zx2c4.com | |
| parent | drm/bochs: Use shadow buffer for bochs framebuffer console (diff) | |
drm/modes: Fix unterminated strncpy
strncpy(dest, src, strlen(src)) leads to unterminated
dest, which is dangerous.
Fix it by using strscpy.
Fixes: 3aeeb13d8996 ("drm/modes: Support modes names on the command line")
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190731020140.3529-1-hslester96@gmail.com
Diffstat (limited to 'samples/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
