Changeset b88691c in rtems


Ignore:
Timestamp:
Nov 16, 1999, 3:26:29 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
c7016198
Parents:
c276c87
Message:

Source and destination arguments to strncpy were swapped. This mistake
was made in the conversion of bcopy() to strncpy().

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/libcsupport/src/scandir.c

    rc276c87 rb88691c  
    113113                p->d_reclen = d->d_reclen;
    114114                p->d_namlen = d->d_namlen;
    115                 strncpy(d->d_name, p->d_name, p->d_namlen + 1);
     115                strncpy(p->d_name, d->d_name, p->d_namlen + 1);
    116116                /*
    117117                 * Check to make sure the array has space left and
  • c/src/lib/libc/scandir.c

    rc276c87 rb88691c  
    113113                p->d_reclen = d->d_reclen;
    114114                p->d_namlen = d->d_namlen;
    115                 strncpy(d->d_name, p->d_name, p->d_namlen + 1);
     115                strncpy(p->d_name, d->d_name, p->d_namlen + 1);
    116116                /*
    117117                 * Check to make sure the array has space left and
  • cpukit/libcsupport/src/scandir.c

    rc276c87 rb88691c  
    113113                p->d_reclen = d->d_reclen;
    114114                p->d_namlen = d->d_namlen;
    115                 strncpy(d->d_name, p->d_name, p->d_namlen + 1);
     115                strncpy(p->d_name, d->d_name, p->d_namlen + 1);
    116116                /*
    117117                 * Check to make sure the array has space left and
Note: See TracChangeset for help on using the changeset viewer.