Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jul 2005 21:56:00 +0200
From:      Dimitry Andric <dimitry@andric.com>
To:        Stefan Sperling <stsp@stsp.in-berlin.de>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: bus error in strsep
Message-ID:  <732507769.20050706215600@andric.com>
In-Reply-To: <20050706194100.GA5170@dice.seeling33.de>
References:  <20050706185536.GA4700@dice.seeling33.de> <42CC2C36.7090003@savvis.net> <42CC2C9F.5000301@savvis.net> <20050706194100.GA5170@dice.seeling33.de>

next in thread | previous in thread | raw e-mail | index | archive | help
------------6914A7B38FCAC75
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

On 2005-07-06 at 21:41:00 Stefan Sperling wrote:

>> >>    char *c = "whats:your:name:buddy?";
>> made type. that should read "that is read only copy" :)
> Dark corners of C... So it's my own fault, as usual :)

Actually, this dark corner was enlightened not so long ago.  String
constants used to be writable for years, until someone decided that it
was better not to. :)

Anyway, you can get the old (deprecated!) behaviour by using the
-fwritable-strings option to gcc.

------------6914A7B38FCAC75
Content-Type: application/pgp-signature

-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.1 (MingW32)

iD8DBQFCzDdQsF6jCi4glqMRArGXAKDZYPhNPj8YIVJARdYxO3yV6I3gCQCfU8nq
og92sKnFlhnMPKJu5aNjvdQ=
=aZAb
-----END PGP MESSAGE-----

------------6914A7B38FCAC75--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?732507769.20050706215600>