From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 6 19:56:09 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 95EAC16A421 for ; Wed, 6 Jul 2005 19:56:09 +0000 (GMT) (envelope-from dimitry@andric.com) Received: from tensor.xs4all.nl (tensor.xs4all.nl [194.109.160.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id BAC1A43D49 for ; Wed, 6 Jul 2005 19:56:08 +0000 (GMT) (envelope-from dimitry@andric.com) Received: from kilgore.dim (kilgore.dim [192.168.0.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.xs4all.nl (Postfix) with ESMTP id 833C7B80B; Wed, 6 Jul 2005 21:56:06 +0200 (CEST) Date: Wed, 6 Jul 2005 21:56:00 +0200 From: Dimitry Andric X-Mailer: The Bat! (v3.51) Professional X-Priority: 3 (Normal) Message-ID: <732507769.20050706215600@andric.com> To: Stefan Sperling 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> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="----------6914A7B38FCAC75" Cc: freebsd-hackers@freebsd.org Subject: Re: bus error in strsep X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dimitry Andric List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Jul 2005 19:56:09 -0000 ------------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--