vl: Fix off-by-one error in device_name_length allocation.
authorVinson Lee <vlee@freedesktop.org>
Sat, 23 Feb 2013 04:33:54 +0000 (20:33 -0800)
committerVinson Lee <vlee@freedesktop.org>
Sat, 23 Feb 2013 22:57:05 +0000 (14:57 -0800)
commitf6487e8911399ee62fffd54035c9459256043f9d
tree3af5a4abb662baba4fd6b563bc0875704499ceeb
parent65aa1a194d703664d2f68e2e6fd69029298ae25a
vl: Fix off-by-one error in device_name_length allocation.

Fixes out-of-bounds write reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Michel Dänzer <michel@daenzer.net>
src/gallium/auxiliary/vl/vl_winsys_dri.c