Ticket #269: fopen.diff

File fopen.diff, 494 bytes (added by KO Myung-Hun, 10 years ago)

patch for fopen()

  • src/emx/src/lib/sys/fs.c

    diff --git a/src/emx/src/lib/sys/fs.c b/src/emx/src/lib/sys/fs.c
    index 648f72b..204d5ec 100755
    a b static int fsResolveUnix(const char *pszUserPath, unsigned fFlags, char *pszNati 
    900900    FS_SAVE_LOAD();
    901901    for (;;)
    902902    {
     903        if (strlen(pszUserPath) >= PATH_MAX)
     904        {
     905            rcRet = -ENAMETOOLONG;
     906            break;
     907        }
     908
    903909        /*
    904910         * Determin root slash position.
    905911         */