From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7560 invoked by alias); 11 Jul 2013 16:24:33 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 7545 invoked by uid 89); 11 Jul 2013 16:24:33 -0000 X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO autolearn=ham version=3.3.1 Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.10) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 11 Jul 2013 16:24:30 +0000 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3brjJq6Yzmz3hkMv; Thu, 11 Jul 2013 18:24:27 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3brjJq0G6pzbbcP; Thu, 11 Jul 2013 18:24:27 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id X3Du1JTfkrL3; Thu, 11 Jul 2013 18:24:25 +0200 (CEST) X-Auth-Info: eElkV3newgD8Vnw2+OjPoRrOHEMPJP9CW57UPOAIKwY= Received: from igel.home (ppp-93-104-134-41.dynamic.mnet-online.de [93.104.134.41]) by mail.mnet-online.de (Postfix) with ESMTPA; Thu, 11 Jul 2013 18:24:25 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 6EB81E22A8; Thu, 11 Jul 2013 18:24:25 +0200 (CEST) From: Andreas Schwab To: "Andrew Burgess" Cc: "gdb-patches\@sourceware.org" Subject: Re: [PATCH] Don't call strchr with the NULL character. References: <51DEDA0E.8020809@broadcom.com> X-Yow: If I am elected, the concrete barriers around the WHITE HOUSE will be replaced by tasteful foam replicas of ANN MARGARET! Date: Thu, 11 Jul 2013 16:24:00 -0000 In-Reply-To: <51DEDA0E.8020809@broadcom.com> (Andrew Burgess's message of "Thu, 11 Jul 2013 17:15:10 +0100") Message-ID: <8738rl5akm.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2013-07/txt/msg00324.txt.bz2 "Andrew Burgess" writes: > My local manpage for strchr doesn't say what happens in this case, 7.24.5.2 The strchr function ... The terminating null character is considered to be part of the string. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."