diff options
-rw-r--r-- | test/test-compcov.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test-compcov.c b/test/test-compcov.c index ae63ca45..24e4c9f2 100644 --- a/test/test-compcov.c +++ b/test/test-compcov.c @@ -29,12 +29,12 @@ int main(int argc, char **argv) { printf("your string was APRI\n"); else if (strcasecmp(input, "Kiwi") == 0) printf("your string was Kiwi\n"); - else if (strstr(input, "tsala") == 0) - printf("your string is a fruit salad\n"); else if (strncasecmp(input, "avocado", 9) == 0) printf("your string was avocado\n"); else if (strncasecmp(input, "Grapes", argc > 2 ? atoi(argv[2]) : 3) == 0) printf("your string was a prefix of Grapes\n"); + else if (strstr(input, "tsala") != NULL) + printf("your string is a fruit salad\n"); else if (strcmp(input, "BUFFEROVERFLOW") == 0) { buf = (char *)malloc(16); @@ -43,7 +43,6 @@ int main(int argc, char **argv) { printf("This will only crash with libdislocator: %s\n", buf); } else if (*(unsigned int *)input == 0xabadcafe) - printf("GG you eat cmp tokens for breakfast!\n"); else if (memcmp(cmpval, input, 8) == 0) printf("local var memcmp works!\n"); |