]> git.buserror.net Git - polintos/scott/priv.git/blobdiff - lib/c/freestanding/string.c
Fix stupid memcmp bug
[polintos/scott/priv.git] / 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;