Changeset cb5056b3 in rtems


Ignore:
Timestamp:
Oct 12, 1999, 6:44:05 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
d71fcab
Parents:
2b9f1f5d
Message:

Changed bcopy to strncpy to stick to ANSI/ISO routines.

Files:
3 edited

Legend:

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

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

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

    r2b9f1f5d rcb5056b3  
    113113                p->d_reclen = d->d_reclen;
    114114                p->d_namlen = d->d_namlen;
    115                 bcopy(d->d_name, p->d_name, p->d_namlen + 1);
     115                strncpy(d->d_name, p->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.