From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 6 20:42:25 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 99EC516A41C for ; Wed, 6 Jul 2005 20:42:25 +0000 (GMT) (envelope-from mwm-dated-1121544956.8d9612@mired.org) Received: from delight.idiom.com (delight.idiom.com [216.240.32.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B31243D4C for ; Wed, 6 Jul 2005 20:42:25 +0000 (GMT) (envelope-from mwm-dated-1121544956.8d9612@mired.org) Received: from idiom.com (idiom.com [216.240.32.1]) by delight.idiom.com (Postfix) with ESMTP id 0C9241F874B for ; Wed, 6 Jul 2005 13:42:25 -0700 (PDT) Received: from mired.org (mwm@idiom [216.240.32.1]) by idiom.com (8.12.11/8.12.11) with SMTP id j66KgNnk025159 for ; Wed, 6 Jul 2005 13:42:24 -0700 (PDT) (envelope-from mwm-dated-1121544956.8d9612@mired.org) Received: (qmail 47985 invoked by uid 1001); 6 Jul 2005 20:15:56 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Wed, 06 Jul 2005 16:15:56 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17100.15356.509506.986644@bhuda.mired.org> Date: Wed, 6 Jul 2005 16:15:56 -0400 To: Dimitry Andric In-Reply-To: <732507769.20050706215600@andric.com> References: <20050706185536.GA4700@dice.seeling33.de> <42CC2C36.7090003@savvis.net> <42CC2C9F.5000301@savvis.net> <20050706194100.GA5170@dice.seeling33.de> <732507769.20050706215600@andric.com> X-Mailer: VM 7.17 under 21.4 (patch 17) "Jumbo Shrimp" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Mike Meyer X-Mailman-Approved-At: Thu, 07 Jul 2005 12:09:13 +0000 Cc: freebsd-hackers@freebsd.org, Stefan Sperling Subject: Re: bus error in strsep X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list 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 20:42:25 -0000 In <732507769.20050706215600@andric.com>, Dimitry Andric typed: > 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. :) I think it used to be implementation-dependent. IIRC, the VMS C compiler didn't have writable string constants. I know there was something like that that bit attempts to port Unix programs to VMS. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.