Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763612AbXHCPQV (ORCPT ); Fri, 3 Aug 2007 11:16:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762733AbXHCPQO (ORCPT ); Fri, 3 Aug 2007 11:16:14 -0400 Received: from hp3.statik.tu-cottbus.de ([141.43.120.68]:51470 "EHLO hp3.statik.tu-cottbus.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761604AbXHCPQN (ORCPT ); Fri, 3 Aug 2007 11:16:13 -0400 Message-ID: <46B346BC.3060404@s5r6.in-berlin.de> Date: Fri, 03 Aug 2007 17:16:12 +0200 From: Stefan Richter User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.5) Gecko/20070716 SeaMonkey/1.1.3 MIME-Version: 1.0 To: Jakub Jelinek CC: Guennadi Liakhovetski , linux-kernel@vger.kernel.org Subject: Re: gcc fixed size char array initialization bug - known? References: <20070802234229.GU2063@devserv.devel.redhat.com> In-Reply-To: <20070802234229.GU2063@devserv.devel.redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 618 Lines: 16 Jakub Jelinek wrote: > ISO C99 is very obvious in that the terminating '\0' (resp. L'\0') from > the string literal is only added if there is room in the array or if the > array has unknown size. I would say C99 is /explicit/ in this regard. It doesn't seem like an overly /obvious/ language feature to me. -- Stefan Richter -=====-=-=== =--- ---== http://arcgraph.de/sr/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/