From 5d16b56c9e419647944301b2a0c3a60042f187a0 Mon Sep 17 00:00:00 2001 From: kichik Date: Mon, 16 Jun 2003 12:40:53 +0000 Subject: [PATCH] validate_filename was b0rked git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2649 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/util.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/exehead/util.c b/Source/exehead/util.c index 0adbcf55..8372cc4c 100644 --- a/Source/exehead/util.c +++ b/Source/exehead/util.c @@ -635,10 +635,11 @@ char * NSISCALL validate_filename(char *in) { } out = out_save = in; while (*(char*)&cur_char = *in) { - if (!mystrstr(nono, (char*)&cur_char)) + if (!mystrstr(nono, (char*)&cur_char)) { mini_memcpy(out, in, CharNext(in) - in); + out = CharNext(out); + } in = CharNext(in); - out = CharNext(out); } do { *out = 0;