|
|
|
|
|
by asveikau
930 days ago
|
|
To support running code you'll need to call mprotect(2) on the buffer to make it executable. If you hit Ctrl-d on this code it will burn through that loop constantly with no input. You need to check fgets()'s return code, it will be NULL on error or eof. |
|
I assume you're talking about Linux/Unix. I'm mostly a Windows guy.