[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Very odd programming trouble



* J.A.Serralheiro (mrserra@ci.uc.pt) spake thusly:
[ char * non-writable ]
RTFFAQ, or e.g. Thinking in C++. Or do 'man gcc' and search for 
-fwritable-strings flag.

Explanation: by default gcc places character array literals into
read-only memory. Attempt to write to that memory causes segfault.

Dima
-- 
E-mail dmaziuk at bmrb dot wisc dot edu (@work) or at crosswinds dot net (@home)
http://www.bmrb.wisc.edu/descript/gpgkey.dmaziuk.ascii -- GnuPG 1.0.4 public key



Reply to: