xcursor: Fix allocation based on string length
authorRob Bradford <rob@linux.intel.com>
Tue, 9 Oct 2012 17:46:21 +0000 (18:46 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 10 Oct 2012 03:01:23 +0000 (23:01 -0400)
commit020170877332f828aaf639ebe5c56d3ff6444511
tree6e7943fdf87281f3690d3850ca59254384b3f203
parentb41dc10063d5b8e2a10e49ca8b227e5f5338ca75
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: Rob Bradford <rob@linux.intel.com>
cursor/xcursor.c