loader/dri3: Use strlen instead of sizeof for creating VRR property atom
authorMichel Dänzer <michel.daenzer@amd.com>
Mon, 4 Feb 2019 17:53:52 +0000 (18:53 +0100)
committerMichel Dänzer <michel@daenzer.net>
Tue, 5 Feb 2019 17:18:44 +0000 (17:18 +0000)
commitc0a540f32067cc8cb126d9aa1eb12a11cf15373a
tree8df8570bd5e89440623789c9bdea8b1bc2af8747
parent4f0a3c9f9eda65c77b295de9a6e7ff17b4658e57
loader/dri3: Use strlen instead of sizeof for creating VRR property atom

sizeof counts the terminating null character as well, so that also
contributed to the ID computed for the X11 atom. But the convention is
for only the non-null characters to contribute to the atom ID.

Fixes: 2e12fe425fe3 "loader/dri3: Enable adaptive_sync via
                     _VARIABLE_REFRESH property"
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/loader/loader_dri3_helper.c