Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c57b0631 authored by Glenn Kasten's avatar Glenn Kasten Committed by Android (Google) Code Review
Browse files

Merge "Fix bug in JetPlayer::loadFromFile"

parents 1eac4601 77b6aaf6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@ private:
    S_JET_STATUS        mJetStatus;
    S_JET_STATUS        mPreviousJetStatus;

    char                mJetFilePath[256];
    char                mJetFilePath[PATH_MAX];

    class JetPlayerThread : public Thread {
    public:
+2 −2
Original line number Diff line number Diff line
@@ -338,8 +338,8 @@ int JetPlayer::loadFromFile(const char* path)
    Mutex::Autolock lock(mMutex);

    mEasJetFileLoc = (EAS_FILE_LOCATOR) malloc(sizeof(EAS_FILE));
    memset(mJetFilePath, 0, 256);
    strncpy(mJetFilePath, path, strlen(path));
    strncpy(mJetFilePath, path, sizeof(mJetFilePath));
    mJetFilePath[sizeof(mJetFilePath) - 1] = '\0';
    mEasJetFileLoc->path = mJetFilePath;

    mEasJetFileLoc->fd = 0;