char *dummyHello = "Hello, PreDAC\n"; is likely stored in non-writable memory and you’re trying to change it. Changing that line to something like char dummyHello[15] = "Hello, PreDAC\n"; or perhaps even char dummyHello[] = "Hello, PreDAC\n"; (if your implementation supports it) should solve your issue.