Browse Source

Fixed segmentation fault for decoding on Windows

refactor
3 years ago
parent
commit
53c21ee4f0
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      source/Fileproc.cpp

+ 3
- 2
source/Fileproc.cpp View File

@@ -63,7 +63,8 @@ void Closefproc() {
// Starts new decoded page. Returns non-negative index to table of processed
// files on success or -1 on error.
int Startnextpage(t_superblock *superblock) {
t_fproc *pf;
t_fproc tmp = {};
t_fproc *pf = &tmp;
// initialize new descriptor.

// strnicmp no longer in standard C++
@@ -75,7 +76,7 @@ int Startnextpage(t_superblock *superblock) {
superblockName.begin(), ::tolower);
const char * cPfName = pfName.c_str();
const char * cSuperblockName = superblockName.c_str();
#ifdef __linux__
// instead of FILETIME comparision, use time_t
double seconds = difftime(pf->modified, superblock->modified);

Loading…
Cancel
Save