X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fstrpbrk.c;h=72de53a8944d8581a399f73f29f6d23684b178d1;hb=107fb0e6719c49e35a6f4a3bdd0dabb19291efe0;hp=7843a6dd6a8295925c09ac2aad2006538b187aa6;hpb=0632e115747ff96e93330c88f536d7354a7ce507;p=gnulib.git diff --git a/lib/strpbrk.c b/lib/strpbrk.c index 7843a6dd6..72de53a89 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-2010 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; }