Fix guestfs___rollback_cmdline when pos == 0.
authorRichard W.M. Jones <rjones@redhat.com>
Sun, 8 May 2011 14:13:23 +0000 (15:13 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 18 May 2011 10:40:31 +0000 (11:40 +0100)
commit7065a453cb09caa216924fd3d8cc913a48e0f942
tree244466990aa3a769e5fe0dd3d59c1296c7e2a3d5
parent5f6abe882ded3b751c34932f397646468bcd93d8
Fix guestfs___rollback_cmdline when pos == 0.

Because of the previous change to size_t, when pos == 0 the loop would
wrap around and cause a segmentation fault.

This fixes a regression introduced by
commit 10167cea98f93a74abe63f0a54d3a662997e7489.
(cherry picked from commit 607aa95de927b5b8e4b212655c71bf21acbba372)
src/launch.c