From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29820 invoked by alias); 26 Feb 2003 13:23:03 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 29801 invoked by uid 48); 26 Feb 2003 13:23:03 -0000 Date: Wed, 26 Feb 2003 13:23:00 -0000 Message-ID: <20030226132303.29800.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, ocmbah@unity.ncsu.edu From: steven@gcc.gnu.org Reply-To: steven@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, ocmbah@unity.ncsu.edu, gcc-gnats@gcc.gnu.org Subject: Re: c/9857: string tokenizer causes segmentation faults X-SW-Source: 2003-02/txt/msg01371.txt.bz2 List-Id: Synopsis: string tokenizer causes segmentation faults State-Changed-From-To: open->closed State-Changed-By: steven State-Changed-When: Wed Feb 26 13:23:02 2003 State-Changed-Why: This is not a compiler bug. You can't use strtok on constant strings. See the manpages. (Note that those also say: "Never use these functions.") http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9857