]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_fsr: ensure the line we read from leftofffile is null terminated
authorEric Sandeen <sandeen@sandeen.net>
Thu, 19 Jun 2014 02:12:36 +0000 (12:12 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 19 Jun 2014 02:12:36 +0000 (12:12 +1000)
commiteef20df010f3a89b2ce7021968beeeb5f3afe4f2
treee0262f97037d3df6a59a7acfd40da1147b74b8ae
parentc667d79c2149a5a678cbde7090766b1be155b033
xfs_fsr: ensure the line we read from leftofffile is null terminated

Ensure that the string we read from leftofffile is NULL
terminated; the buffer gets passed to strchr(), so
it's important that we ensure it ends with NULL.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fsr/xfs_fsr.c