Changeset 2aaa1643 in rtems


Ignore:
Timestamp:
Jul 27, 2007, 4:35:15 PM (13 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
74cde4d
Parents:
15b81bb
Message:

2007-07-27 Ralf Corsépius <ralf.corsepius@…>

  • nfsclient/src/dirutils.c: Use PATH_MAX instead of MAXPATHLEN.
Location:
c/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/ChangeLog

    r15b81bb r2aaa1643  
     12007-07-27      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * nfsclient/src/dirutils.c: Use PATH_MAX instead of MAXPATHLEN.
     4
     52007-07-26      Ralf Corsépius <ralf.corsepius@rtems.org>
     6
     7        * nfsclient/src/rpcio.c: Use size_t instead of uint32_t for message
     8          sizes.
     9
    1102007-07-27      Chris Johns <chrisj@rtems.org>
    211
  • c/src/nfsclient/src/dirutils.c

    r15b81bb r2aaa1643  
    7070pwd(void)
    7171{
    72 char buf[MAXPATHLEN];
    73 
    74         if ( !getcwd(buf,MAXPATHLEN)) {
     72char buf[PATH_MAX];
     73
     74        if ( !getcwd(buf,PATH_MAX)) {
    7575                perror("getcwd");
    7676                return -1;
     
    121121{
    122122struct dirent   *de;
    123 char                    path[MAXPATHLEN+1];
     123char                    path[PATH_MAX+1];
    124124char                    *chpt;
    125125DIR                             *dp  = 0;
     
    130130                dir = ".";
    131131
    132         strncpy(path, dir, MAXPATHLEN);
    133         path[MAXPATHLEN] = 0;
     132        strncpy(path, dir, PATH_MAX);
     133        path[PATH_MAX] = 0;
    134134        chpt = path+strlen(path);
    135135
Note: See TracChangeset for help on using the changeset viewer.