commit | c2cba3d9314f972dfaf724d0ec2d018eb54c95f1 | [log] [tgz] |
---|---|---|
author | Jim Meyering <meyering@redhat.com> | Thu Oct 04 13:09:46 2012 +0200 |
committer | Anthony Liguori <aliguori@us.ibm.com> | Fri Oct 05 07:58:36 2012 -0500 |
tree | 2a3572afbfaa3bbac89eb0a5166b4384bb60bf81 | |
parent | bfad67399bcca8c1afbbc93593d365044d92f7c6 [diff] |
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>