From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28714 invoked by alias); 28 Dec 2004 01:00:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 28583 invoked by uid 48); 28 Dec 2004 01:00:45 -0000 Date: Tue, 28 Dec 2004 01:00:00 -0000 Message-ID: <20041228010045.28582.qmail@sourceware.org> From: "rolosworld at gmail dot com" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20041228000900.19172.rolosworld@gmail.com> References: <20041228000900.19172.rolosworld@gmail.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/19172] strcpy bug? or mine? X-Bugzilla-Reason: CC X-SW-Source: 2004-12/txt/msg03679.txt.bz2 List-Id: ------- Additional Comments From rolosworld at gmail dot com 2004-12-28 01:00 ------- (In reply to comment #1) > You forgot C strings are null terminated. I did this: word = new char( strlen(str) + 1 ); word[strlen(str)] = '\0'; and still get the same output..? -- What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19172