]> Git Repo - qemu.git/commit
block: avoid buffer overrun by using pstrcpy, not strncpy
authorJim Meyering <[email protected]>
Thu, 4 Oct 2012 11:09:46 +0000 (13:09 +0200)
committerAnthony Liguori <[email protected]>
Fri, 5 Oct 2012 12:58:36 +0000 (07:58 -0500)
commitc2cba3d9314f972dfaf724d0ec2d018eb54c95f1
tree2a3572afbfaa3bbac89eb0a5166b4384bb60bf81
parentbfad67399bcca8c1afbbc93593d365044d92f7c6
block: avoid buffer overrun by using pstrcpy, not strncpy

Also, use PATH_MAX, rather than the arbitrary 1024.
Using PATH_MAX is more consistent with other filename-related
variables in this file, like backing_filename and tmp_filename.

Acked-by: Kevin Wolf <[email protected]>
Signed-off-by: Jim Meyering <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
block.c
This page took 0.024753 seconds and 4 git commands to generate.