From b6f9f4c436bc8c63f9039847d2a7b6e13da3515e Mon Sep 17 00:00:00 2001 From: van Hauser Date: Thu, 23 Apr 2020 16:08:36 +0200 Subject: minor changes --- test/test-compcov.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/test-compcov.c') diff --git a/test/test-compcov.c b/test/test-compcov.c index f1743265..5278af93 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) -- cgit 1.4.1