]> git.buserror.net Git - polintos/scott/priv.git/commitdiff
Fix stupid memcmp bug
authorScott Wood <scott@thor.buserror.net>
Mon, 3 Mar 2008 16:45:53 +0000 (10:45 -0600)
committerScott Wood <scott@thor.buserror.net>
Mon, 3 Mar 2008 16:45:53 +0000 (10:45 -0600)
lib/c/freestanding/string.c

index 0241f91b5c10176ef2fb8f54fc3b179e16717699..f1ede1e8fee6ec50cb6041016078680b433e126b 100644 (file)
@@ -51,8 +51,6 @@ int memcmp(const void *b1, const void *b2, size_t len)
        for (pos = 0; pos < len; pos++) {
                if (c1[pos] != c2[pos])
                        return c1[pos] - c2[pos];
-                       
-               pos++;
        }
        
        return 0;