hdt: Fixing memory corruption
authorerwan <erwan@r1.paris>
Wed, 19 Aug 2009 22:19:44 +0000 (00:19 +0200)
committererwan <erwan@r1.paris>
Wed, 19 Aug 2009 22:19:44 +0000 (00:19 +0200)
commitf856e30a7162319b9743d6742cec9d41b33269b5
treeb834d2c54fc002cd2defe3a1b0fe6a97cc847d6a
parent43ec93d70fba9f7d014b295e2c49035283596e1d
hdt: Fixing memory corruption

Impact: Improve stability

In some case, sectors_to_size can return a 8 char long string like "1000
MiB". In such case, some buffer were corrupted.

This is now fixed by a size[9] instead of size[8].
com32/hdt/hdt-cli-disk.c
com32/hdt/hdt-menu-disk.c