~stratagus/wargus/master

« back to all changes in this revision

Viewing changes to wartool.cpp

  • Committer: Tim Felgentreff
  • Date: 2018-09-29 19:19:28 UTC
  • Revision ID: git-v1:92ba1d1bdf5b12ac8c5eb12e6c43351377194cc0
Tags: v2.4.2
fix compilation error

Show diffs side-by-side

added added

removed removed

Lines of Context:
2675
2675
                                        error("Archive version error", "This version of the CD is not supported");
2676
2676
                                }
2677
2677
#ifdef USE_STORMLIB
2678
 
                                char mpqfile[8192] = {'\0'};
2679
 
                                char extract[8192] = {'\0'};
 
2678
                                char mpqfile[8192];
 
2679
                                char extract[8192];
 
2680
                                memset(mpqfile, 0, 8192);
 
2681
                                memset(extract, 0, 8192);
2680
2682
                                if (Todo[u].Arg1 == 1) { // local archive
2681
2683
                                        sprintf(mpqfile, "%s/%s", Dir, Todo[u].MPQFile);
2682
2684
                                        printf("%s from MPQ file \"%s\"\n", Todo[u].ArcFile, mpqfile);