summaryrefslogtreecommitdiff
path: root/sys/src/libmach
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2014-01-14 00:22:13 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2014-01-14 00:22:13 +0100
commit79e8f53e89d83805784bd2a8832cddc4bc0de608 (patch)
tree18637eb3e37565c0940857b5923c6727bdd762b5 /sys/src/libmach
parent265b392e0111e5927a205522d2e257aff495db01 (diff)
devdraw: fix memory corruption reading draw ctl file
when user does read of exactly 12*12 bytes on draw ctl file, the snprint() adds one more \0 byte writing beyond the user buffer and corrupting memory. fix this by not snprint()ing the final space and add it manually.
Diffstat (limited to 'sys/src/libmach')
0 files changed, 0 insertions, 0 deletions