Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932183AbWCYSmf (ORCPT ); Sat, 25 Mar 2006 13:42:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932214AbWCYSme (ORCPT ); Sat, 25 Mar 2006 13:42:34 -0500 Received: from linux01.gwdg.de ([134.76.13.21]:28308 "EHLO linux01.gwdg.de") by vger.kernel.org with ESMTP id S932183AbWCYSme (ORCPT ); Sat, 25 Mar 2006 13:42:34 -0500 Date: Sat, 25 Mar 2006 19:41:56 +0100 (MET) From: Jan Engelhardt To: Adrian Bunk cc: Andrew Morton , linux-kernel@vger.kernel.org, Darren Jenkins Subject: Re: [2.6 patch] fix array over-run in efi.c In-Reply-To: <20060325115853.GB4053@stusta.de> Message-ID: References: <20060325115853.GB4053@stusta.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 454 Lines: 15 >- for (i = 0; i < sizeof(vendor) && *c16; ++i) >+ for (i = 0; i < (sizeof(vendor) - 1) && *c16; ++i) for (i = 0; i < sizeof(vendor) - 1 && *c16; ++i) Should suffice. Jan Engelhardt -- - 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/