Subject p9p and writable strings

Anyone built p9p recently, how do you cope with modern gcc
which now places all string constants in a readonly section
in the executable, and there is nolonger an option to prevent it.

the two main offenders I have found so far are mktemp() and cleanname().
In several places these are passed string constants.

the obvious alternatives would be to have these two functions return
malloc'ed memory (and remeber to free it later), or to replace
the string constant with an initialised variable.

What has anyone else done? have I missed somthing?

-Steve

Reply via email to