From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 6 19:09:17 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 CC5BC16A41C for ; Wed, 6 Jul 2005 19:09:17 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 830C743D49 for ; Wed, 6 Jul 2005 19:09:17 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate1b.savvis.net (Postfix) with ESMTP id BF99D3BEC2; Wed, 6 Jul 2005 14:09:16 -0500 (CDT) Received: from mailgate1b.savvis.net ([127.0.0.1]) by localhost (mailgate1b.savvis.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17166-01-89; Wed, 6 Jul 2005 14:09:16 -0500 (CDT) Received: from out002.email.savvis.net (out002.apptix.savvis.net [216.91.32.45]) by mailgate1b.savvis.net (Postfix) with ESMTP id 957163BE9A; Wed, 6 Jul 2005 14:09:16 -0500 (CDT) Received: from s228130hz1ew171.apptix-01.savvis.net ([10.146.4.29]) by out002.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Wed, 6 Jul 2005 14:09:09 -0500 Received: from [10.254.186.111] ([64.14.1.106]) by s228130hz1ew171.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Wed, 6 Jul 2005 14:08:37 -0500 Message-ID: <42CC2C36.7090003@savvis.net> Date: Wed, 06 Jul 2005 12:08:38 -0700 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Stefan Sperling References: <20050706185536.GA4700@dice.seeling33.de> In-Reply-To: <20050706185536.GA4700@dice.seeling33.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 06 Jul 2005 19:08:38.0100 (UTC) FILETIME=[1D5B8140:01C5825E] X-Virus-Scanned: amavisd-new at savvis.net 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 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:09:17 -0000 Stefan, > int main(int argc, char* argv[]) > { > char *c = "whats:your:name:buddy?"; ^^^^^^^^^^^^^^^^ that is not read only copy. you can not write into it. replace it with char *c = strdup("whats:your:name:buddy?"); > (void*)mystrsep(&c, ":"); > } > and it should work. thanks, max