Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755310Ab0DTUxY (ORCPT ); Tue, 20 Apr 2010 16:53:24 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:56134 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755214Ab0DTUxW (ORCPT ); Tue, 20 Apr 2010 16:53:22 -0400 From: Andreas Schwab To: Christian Kujau Cc: Michael Ellerman , "Rafael J. Wysocki" , Linux Kernel Mailing List , linuxppc-dev@ozlabs.org, Kernel Testers List , adobriyan@gmail.com, Maciej Rutecki Subject: Re: [Bug #15589] 2.6.34-rc1: Badness at fs/proc/generic.c:316 References: <1271765898.4324.2.camel@concordia> X-Yow: It's hard being an ARTIST!! Date: Tue, 20 Apr 2010 22:53:19 +0200 In-Reply-To: (Christian Kujau's message of "Tue, 20 Apr 2010 11:15:05 -0700 (PDT)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.96 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 524 Lines: 17 Christian Kujau writes: > + while ((p = strstr(p, "/"))) You want to use strchr. 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." -- 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/