AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20070424223957.5f7978cd@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:onstor-exch02.onstor.net
NSV:
SSH:
R:<jonathan.goldick@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
X-Sylpheed-End-Special-Headers: 1
Date: Tue, 24 Apr 2007 22:40:09 -0700
From: Andrew Sharp <andy.sharp@onstor.com>
To: Jonathan Goldick <jonathan.goldick@onstor.com>
Subject: figured it out on the drive home, of course
Message-ID: <20070424224009.68aea0b7@ripper.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

The answer is that someone, somehow, has modified the compiling/linking
to allocate string literals in const areas.  so, by changing

char *foo = "byte me";

to

char foo[] = "byte me";

it lets me get away with modifying the memory.  The second is considered
an initializer, whereas the first is made to act like a string constant.
"Allocate string literals as constants" is supposed to save memory.  I
cannot figured out what checkin changed this, or in what file.  But
this code definitely worked after I checked it in almost a month ago.

Maybe it's a good thing I can't figure out who's responsible, because I
would possessed of a murderous intent if I did.

Cheers,

a
