commit | 9c7de167f85ac467bcae8534c4c0829f126cc7bf | [log] [tgz] |
---|---|---|
author | Bryce Harrington <bryce@osg.samsung.com> | Fri Aug 28 13:04:26 2015 -0700 |
committer | Bryce Harrington <bryce@osg.samsung.com> | Tue Sep 22 18:40:57 2015 -0700 |
tree | 7e2636c3764a488ac56729cb72adaf141b3ebc12 | |
parent | e54cee17a717db2bee5225beaaaf28c288fc2c41 [diff] |
compositor-drm: Ensure strings from EDID blobs are null terminated strncpy only adds null terminating bytes if the source string is smaller than the destination string. Since this function relies on the string being null terminated when checking its contents, we better make sure there is at least a \0 as the last character. Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Derek Foreman <derekf@osg.samsung.com>