tarcisio-marinho/GonnaCry

GonnaCry Older Version C Issue [warning: assignment makes integer from pointer without a cast ]

LearnerNP opened this issue · 1 comments

I am trying to compile C (Older version) version of GonnaCry but I am running into a problem. I understand this is an older version but would like to request for your help.

lib/struct.c: In function ‘destroy’:
lib/struct.c:61:27: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
             *aux->info[i] = "random_string";
                           ^
gcc -c lib/func.c -o lib/func.o
gcc lib/gonnacry.o lib/crypto.o lib/struct.o lib/func.o -o bin/gonnacry -lcrypto  

Even with the warning, the code compiles and binaries are stored inside the bin/ directory !