Changeset cecd206 in rtems


Ignore:
Timestamp:
Jan 5, 2000, 5:09:36 PM (20 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
fcd0c90
Parents:
e015106
Message:

+ Added check for name greater than PATH_MAX.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/posix/src/mqueuenametoid.c

    re015106 rcecd206  
    4949    return EINVAL;
    5050
     51  if( strlen(name) > PATH_MAX )  /* XXX - Is strlen ok to use here ? */
     52    return ENAMETOOLONG;
     53
    5154  status = _Objects_Name_to_id(
    5255    &_POSIX_Message_queue_Information, (char *)name, 0, id );
  • cpukit/posix/src/mqueuenametoid.c

    re015106 rcecd206  
    4949    return EINVAL;
    5050
     51  if( strlen(name) > PATH_MAX )  /* XXX - Is strlen ok to use here ? */
     52    return ENAMETOOLONG;
     53
    5154  status = _Objects_Name_to_id(
    5255    &_POSIX_Message_queue_Information, (char *)name, 0, id );
Note: See TracChangeset for help on using the changeset viewer.