In the patched asterisk.c there are 2 buffers for options
and arguments:
char args[512];
and
char opts[1024];
These are appended to when arguments are parsed from
the command line but they are never initialised. I use
the following as a work-around.
args[0]='\0';
opts[0]='\0';
This is the cause of the 'non-writable char' prepended
to the options around line 2000.