diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-10-12 18:44:05 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-10-12 18:44:05 +0000 |
commit | cb5056b38701d18309e35216f5bfc15a9bdeb90d (patch) | |
tree | 8525ac513839ff3b220df9a2ddd3622a23e0b7f4 /c/src/exec/libcsupport/src/scandir.c | |
parent | Fixed random cut and paste problem. (diff) | |
download | rtems-cb5056b38701d18309e35216f5bfc15a9bdeb90d.tar.bz2 |
Changed bcopy to strncpy to stick to ANSI/ISO routines.
Diffstat (limited to 'c/src/exec/libcsupport/src/scandir.c')
-rw-r--r-- | c/src/exec/libcsupport/src/scandir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/exec/libcsupport/src/scandir.c b/c/src/exec/libcsupport/src/scandir.c index 9ba1cb7bec..25f3263187 100644 --- a/c/src/exec/libcsupport/src/scandir.c +++ b/c/src/exec/libcsupport/src/scandir.c @@ -112,7 +112,7 @@ scandir(dirname, namelist, select, dcomp) p->d_ino = d->d_ino; p->d_reclen = d->d_reclen; p->d_namlen = d->d_namlen; - bcopy(d->d_name, p->d_name, p->d_namlen + 1); + strncpy(d->d_name, p->d_name, p->d_namlen + 1); /* * Check to make sure the array has space left and * realloc the maximum size. |