diff options
author | Jim Meyering <meyering@redhat.com> | 2012-10-04 13:09:46 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2012-10-05 07:58:36 -0500 |
commit | c2cba3d9314f972dfaf724d0ec2d018eb54c95f1 (patch) | |
tree | 2a3572afbfaa3bbac89eb0a5166b4384bb60bf81 /block | |
parent | bfad67399bcca8c1afbbc93593d365044d92f7c6 (diff) | |
download | qemu-c2cba3d9314f972dfaf724d0ec2d018eb54c95f1.zip qemu-c2cba3d9314f972dfaf724d0ec2d018eb54c95f1.tar.gz qemu-c2cba3d9314f972dfaf724d0ec2d018eb54c95f1.tar.bz2 |
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 <kwolf@redhat.com>
Signed-off-by: Jim Meyering <meyering@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions