Skip to content

Commit

Permalink
fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
timfel committed Sep 29, 2018
1 parent ce233f8 commit 92ba1d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions wartool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2675,8 +2675,10 @@ int main(int argc, char** argv)
error("Archive version error", "This version of the CD is not supported");
}
#ifdef USE_STORMLIB
char mpqfile[8192] = {'\0'};
char extract[8192] = {'\0'};
char mpqfile[8192];
char extract[8192];
memset(mpqfile, 0, 8192);
memset(extract, 0, 8192);
if (Todo[u].Arg1 == 1) { // local archive
sprintf(mpqfile, "%s/%s", Dir, Todo[u].MPQFile);
printf("%s from MPQ file \"%s\"\n", Todo[u].ArcFile, mpqfile);
Expand Down

0 comments on commit 92ba1d1

Please sign in to comment.