From 34ff80ab5f86fabf63ee2bbc3fe8c310088baf00 Mon Sep 17 00:00:00 2001 From: kichik Date: Thu, 19 Sep 2002 16:42:41 +0000 Subject: [PATCH] Shows the right name when can't open script (doesn't show the .nsi appended) git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1051 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/makenssi.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/makenssi.cpp b/Source/makenssi.cpp index 7b219bbe..376f243d 100644 --- a/Source/makenssi.cpp +++ b/Source/makenssi.cpp @@ -289,6 +289,7 @@ int main(int argc, char **argv) { if (build.display_errors) { + sfile[strlen(sfile)-4]=0; fprintf(g_output,"Can't open script \"%s\"\n",sfile); fflush(g_output); }