Skip to content
Commit 02017087 authored by Rob Bradford's avatar Rob Bradford Committed by Kristian Høgsberg
Browse files

xcursor: Fix allocation based on string length



strlen() doesn't include the terminating NUL. Therefore when allocating a
block of memory to hold something equivalent to the length of the string we
must increment to take the NUL byte into consideration.

Signed-off-by: default avatarRob Bradford <rob@linux.intel.com>
parent b41dc100
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment