From 9fc19e48b594911f45a3df47218e47c42238ceb8 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 12 Dec 1998 22:10:30 +0000 Subject: Update. 1998-12-12 Geoff Keating * posix/fnmatch.c (fnmatch): Arguments to FOLD must not have side-effects. --- posix/fnmatch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'posix') diff --git a/posix/fnmatch.c b/posix/fnmatch.c index 2d6f6af..6d48be3 100644 --- a/posix/fnmatch.c +++ b/posix/fnmatch.c @@ -245,7 +245,8 @@ fnmatch (pattern, string, flags) { if (*p == '\0') return FNM_NOMATCH; - c = FOLD (*p++); + c = FOLD (*p); + ++p; if (c == fn) goto matched; -- cgit v1.1