Ticket #10302: wxstring-conversions-fix.patch

File wxstring-conversions-fix.patch, 873 bytes (added by Tomáš Chvátal, 6 years ago)

wxstrings-conversions-fix.patch

  • src/engine/process.cpp

    old new public:  
    290290            }
    291291
    292292            // Execute process
    293             execl(cmd, args, (char*)0); // noreturn on success
     293            execl(cmd.mb_str(), args.mb_str(), (char*)0); // noreturn on success
    294294
    295295            _exit(-1);
    296296        }
  • src/engine/sftpcontrolsocket.cpp

    old new int CSftpControlSocket::ListParseEntry(c  
    10991099        return FZ_REPLY_INTERNALERROR;
    11001100    }
    11011101
    1102     pData->pParser->AddLine(entry);
     1102    pData->pParser->AddLine(entry.wchar_str());
    11031103
    11041104    return FZ_REPLY_WOULDBLOCK;
    11051105}