Closed nicolasboulay closed 4 years ago
It's a bug in quarrel.c
sizeof(prompt_password) will always return 8 in 64 bits environment, because prompt_password is an pointer and not a static array.
Use 100 as hard coded value. I try with "char prompt_password[100];", it works, but the string will not be valid outside of the scope of the function.
Fixed at commit 12698abce6bd91faecc6c0f73b078cc147674139.
It's a bug in quarrel.c
sizeof(prompt_password) will always return 8 in 64 bits environment, because prompt_password is an pointer and not a static array.
Use 100 as hard coded value. I try with "char prompt_password[100];", it works, but the string will not be valid outside of the scope of the function.