Hi,
attached patch adds:
1, simple strncmp implementation in include/string.h 2, changes lib/lar.c to use strncmp for magic check. Current code depends on that the len field will never hold a value bigger than 0xffffff, which is a working assumption given current flash sizes, but my next patch might affect this.
-- Alex
On Thu, Sep 06, 2007 at 02:50:55AM +0200, Alex Beregszaszi wrote:
1, simple strncmp implementation in include/string.h 2, changes lib/lar.c to use strncmp for magic check. Current code depends on that the len field will never hold a value bigger than 0xffffff, which is a working assumption given current flash sizes, but my next patch might affect this.
Looks good. Committed in r496 with some minor modifications.
Uwe.