Bug in ipkg_install.c

From: Steven Scholz <steven.scholz_at_imc-berlin.de>
Date: Tue, 05 Jul 2005 18:56:32 +0200

Hi there,

not sure if this is the correct ML for ipkg itself. However

I think there's a bug in ipkg_install.c:

The strncpy() copies not enough bytes:

     strncpy (message_out,"Upgrading ",12);
     ...
     strncpy (message_out,"Downgrading ",12);

The strings are 12 chars. So you must copy 13 byte to copy the terminating
`\0' character as well.

Otherwise I get garbage after "Upgrading"

-- 
Steven
Received on Tue Jul 05 2005 - 13:01:47 EDT

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:18:10 EDT