From 473d90a1bc68430b40df30be94addcdd817f66bc Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 8 May 2004 11:34:31 +0000 Subject: [PATCH] always go forward in the POSIX implmentation of CharNext git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3540 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/util.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/util.cpp b/Source/util.cpp index b7171468..fed6cf22 100644 --- a/Source/util.cpp +++ b/Source/util.cpp @@ -378,7 +378,7 @@ char *CharPrev(const char *s, const char *p) { char *CharNext(const char *s) { int l = 0; if (s && *s) - l = min(1, mblen(s, strlen(s))); + l = max(1, mblen(s, strlen(s))); return (char *) s + l; }