X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=common%2Fcmd_itest.c;h=2a238a43e5d13e56db36665562162eee5e512705;hb=5f3dfadc26c3d7c02e5fe16a743475328a85e891;hp=fa6a0c30113216df21d96e5bb3075cf9a849d5aa;hpb=cdc51c294ad33879c4e57edf4c9d2155381b1d59;p=karo-tx-uboot.git diff --git a/common/cmd_itest.c b/common/cmd_itest.c index fa6a0c3011..2a238a43e5 100644 --- a/common/cmd_itest.c +++ b/common/cmd_itest.c @@ -94,16 +94,13 @@ static char * evalstr(char *s) static int stringcomp(char *s, char *t, int op) { - int n, p; + int p; char *l, *r; l = evalstr(s); r = evalstr(t); - /* we'll do a compare based on the length of the shortest string */ - n = min(strlen(l), strlen(r)); - - p = strncmp(l, r, n); + p = strcmp(l, r); switch (op) { case EQ: return (p == 0); case NE: return (p != 0);