mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
2009-12-07 Cindy Cicalese <cicalese@mitre.org>
PR 1477/cpukit * score/src/objectsetname.c: Ensure destination is NULL terminated. String copy was not getting the NULL.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2009-12-07 Cindy Cicalese <cicalese@mitre.org>
|
||||||
|
|
||||||
|
PR 1477/cpukit
|
||||||
|
* score/src/objectsetname.c: Ensure destination is NULL terminated.
|
||||||
|
String copy was not getting the NULL.
|
||||||
|
|
||||||
2009-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2009-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* libnetworking/sys/uio.h: Include <sys/types.h>.
|
* libnetworking/sys/uio.h: Include <sys/types.h>.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* COPYRIGHT (c) 1989-2008.
|
* COPYRIGHT (c) 1989-2009.
|
||||||
* On-Line Applications Research Corporation (OAR).
|
* On-Line Applications Research Corporation (OAR).
|
||||||
*
|
*
|
||||||
* The license and distribution terms for this file may be
|
* The license and distribution terms for this file may be
|
||||||
@@ -53,6 +53,7 @@ bool _Objects_Set_name(
|
|||||||
}
|
}
|
||||||
|
|
||||||
strncpy( d, name, length );
|
strncpy( d, name, length );
|
||||||
|
d[length] = '\0';
|
||||||
the_object->name.name_p = d;
|
the_object->name.name_p = d;
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user