I am using strchr to find a point in the buffer where an = is encountered. Then I am changing that equal too character to a M. I get a segfault at the line where I try to do this. 
This is the FULL code:
int main(void){
    char *buffer = "Name=Tom"
    char *pointer;
    pointer = strchr(buffer,'=');
    *pointer = 'M';    <--------- Segfault Occurs here
return (0);
}
I get the following error with the segfault:
Process terminating with default action of signal 11 (SIGSEGV)
 Bad permissions for mapperd region at addresss .....
 
     
     
     
    