coding-agent-contributor / simple-hello

MIT License
0 stars 0 forks source link

Fix segmentation fault in main.c by correcting buffer size in fgets #17

Closed mentatbot[bot] closed 2 months ago

mentatbot[bot] commented 2 months ago

Resolved the segmentation fault issue by changing the buffer size in the fgets function to match the size of the name array. This prevents buffer overflow and ensures that the input does not exceed the allocated memory.

Closes #16