This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 387 for ps


Ignore:
Timestamp:
06/03/04 16:20:09 (21 years ago)
Author:
janwas
Message:

fix stupid mmap bug reported by simon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/lib/res/file.cpp

    r376 r387  
    13281328
    13291329    const int prot = (f->flags & FILE_WRITE)? PROT_WRITE : PROT_READ;
    1330     f->mapping = mmap((void*)0, size, prot, MAP_PRIVATE, f->fd, (off_t)0);
     1330    f->mapping = mmap((void*)0, f->size, prot, MAP_PRIVATE, f->fd, (off_t)0);
    13311331    if(!f->mapping)
    13321332        return ERR_NO_MEM;
Note: See TracChangeset for help on using the changeset viewer.