View Single Post
omeriko9's Avatar
Posts: 385 | Thanked: 344 times | Joined on Jan 2010 @ Israel
#19
Originally Posted by Joorin View Post
Changing from a pointer to instead using allocated memory usually means that you tried to use the char * without allocating memory for it.

Hence the segmentation fault.
I see... so this is a case where I should have used "malloc" & "free"... or use an allocated memory. Right?