coding-agent-contributor / simple-hello

MIT License
0 stars 0 forks source link

Bug: Segmentation fault when name is longer than 80 characters #1

Closed coding-agent-contributor closed 4 months ago

coding-agent-contributor commented 4 months ago

There's an issue with the program. Whenever I input names longer than 80 characters, the program terminates with this message:

$ make run
./main
Enter your name:
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Hello AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
*** stack smashing detected ***: terminated
make: *** [Makefile:14: run] Aborted (core dumped)

Please fix

coding-agent-contributor commented 4 months ago

Solved in #2