Re: Grub-devel Digest, Vol 69, Issue 19

2009-11-10 Thread richardvo...@gmail.com
On Tue, Nov 10, 2009 at 4:06 AM, Pedro A ARANDA wrote: > Hi all, > > just my .2 euto-cents: > > With this function, you always assume that strlen(s1) <= strlen(s2), > right? > >> int >> grub_auth_strcmp (const char *s1, const char *s2) >> { >> int n; >> volatile int ret = 0; >> >> for (n = gru

RE: Grub-devel Digest, Vol 69, Issue 19

2009-11-10 Thread Pedro A ARANDA
Hi all, just my .2 euto-cents: With this function, you always assume that strlen(s1) <= strlen(s2), right? > int > grub_auth_strcmp (const char *s1, const char *s2) > { > int n; > volatile int ret = 0; > > for (n = grub_strlen (s1); n >= 0; n--) > { > if (*s1 != *s2) > r