I\'ve allocated a chuck of memory with char* memoryChunk = malloc ( 80* sizeof(char) + 1);
What is keeping me from writing into the memory location beyond 81 un
Nothing keeps you from writing beyond that bound, and what happens depends on what is beyond that bound. Standard hacker trick (buffer overflow) for hacking programs that don't check and ensure that they do not overwrite buffer limits.
As mentioned by other posters, you just have to program carefully. Don't use calls like strlen, strcpy - use the length-limited versoins like strncpy etc.