mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
Changed bcopy to strncpy to stick to ANSI/ISO routines.
This commit is contained in:
@@ -112,7 +112,7 @@ scandir(dirname, namelist, select, dcomp)
|
|||||||
p->d_ino = d->d_ino;
|
p->d_ino = d->d_ino;
|
||||||
p->d_reclen = d->d_reclen;
|
p->d_reclen = d->d_reclen;
|
||||||
p->d_namlen = d->d_namlen;
|
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
|
* Check to make sure the array has space left and
|
||||||
* realloc the maximum size.
|
* realloc the maximum size.
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ scandir(dirname, namelist, select, dcomp)
|
|||||||
p->d_ino = d->d_ino;
|
p->d_ino = d->d_ino;
|
||||||
p->d_reclen = d->d_reclen;
|
p->d_reclen = d->d_reclen;
|
||||||
p->d_namlen = d->d_namlen;
|
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
|
* Check to make sure the array has space left and
|
||||||
* realloc the maximum size.
|
* realloc the maximum size.
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ scandir(dirname, namelist, select, dcomp)
|
|||||||
p->d_ino = d->d_ino;
|
p->d_ino = d->d_ino;
|
||||||
p->d_reclen = d->d_reclen;
|
p->d_reclen = d->d_reclen;
|
||||||
p->d_namlen = d->d_namlen;
|
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
|
* Check to make sure the array has space left and
|
||||||
* realloc the maximum size.
|
* realloc the maximum size.
|
||||||
|
|||||||
Reference in New Issue
Block a user