mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
2003-03-27 Joel Sherrill <joel@OARcorp.com>
* kern/kern_sysctl.c: Converted from BSP strlcpy() to strncpy().
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2003-03-27 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* kern/kern_sysctl.c: Converted from BSP strlcpy() to strncpy().
|
||||
|
||||
2003-03-25 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* rtems/rtems_bsdnet_malloc_starvation.c: Fixed name of include file.
|
||||
|
||||
@@ -856,7 +856,7 @@ retry:
|
||||
outlen = strlen((char *)arg1)+1;
|
||||
tmparg = malloc(outlen, M_SYSCTLTMP, M_WAITOK);
|
||||
|
||||
if (strlcpy(tmparg, (char *)arg1, outlen) >= outlen) {
|
||||
if (strncpy(tmparg, (char *)arg1, outlen) >= outlen) {
|
||||
free(tmparg, M_SYSCTLTMP);
|
||||
goto retry;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user