Fixing the code according to the "capacity unused" warnings.

Signed-off-by: Stéphane Galland <galland@arakhne.org>