SyntaxFix
Write A Post
Hire A Developer
Questions
Your code attempts to overwrite a string literal. This is undefined behaviour.
There are several ways to fix this:
malloc()
strcpy()
free()
str
strdup()