about summary refs log tree commit diff
path: root/test/test-compcov.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-compcov.c')
-rw-r--r--test/test-compcov.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test-compcov.c b/test/test-compcov.c
index f1743265..c8dd674e 100644
--- a/test/test-compcov.c
+++ b/test/test-compcov.c
@@ -25,11 +25,10 @@ int main(int argc, char **argv) {
     printf("your string was bugmenot\n");
   else if (strcmp(input, "BUFFEROVERFLOW") == 0) {
 
-    buf = malloc(16);
+    buf = (char *)malloc(16);
     strcpy(buf, "TEST");
     strcat(buf, input);
     printf("This will only crash with libdislocator: %s\n", buf);
-    return 0;
 
   } else if (*(unsigned int *)input == 0xabadcafe)