X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fstrpbrk.c;h=05e6c511f92262e2b69beb1cfad05bc689f1a60a;hb=29ab5525603344e191913dde293d2b77c9728a55;hp=7843a6dd6a8295925c09ac2aad2006538b187aa6;hpb=0632e115747ff96e93330c88f536d7354a7ce507;p=gnulib.git diff --git a/lib/strpbrk.c b/lib/strpbrk.c index 7843a6dd6..05e6c511f 100644 --- a/lib/strpbrk.c +++ b/lib/strpbrk.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1994, 2000, 2002-2003, 2006 Free Software +/* Copyright (C) 1991, 1994, 2000, 2002-2003, 2006, 2009-2011 Free Software Foundation, Inc. NOTE: The canonical source of this file is maintained with the GNU C Library. @@ -33,8 +33,8 @@ strpbrk (const char *s, const char *accept) { const char *a = accept; while (*a != '\0') - if (*a++ == *s) - return (char *) s; + if (*a++ == *s) + return (char *) s; ++s; }