libvirt/daemon
Chris Lalancette 03d777f345 Introduce virStrncpy.
Add the virStrncpy function, which takes a dst string, source string,
the number of bytes to copy and the number of bytes available in the
dest string.  If the source string is too large to fit into the
destination string, including the \0 byte, then no data is copied and
the function returns NULL.  Otherwise, this function copies n bytes
from source into dst, including the \0, and returns a pointer to the
dst string.  This function is intended to replace all unsafe uses
of strncpy in the code base, since strncpy does *not* guarantee that
the buffer terminates with a \0.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
2009-09-22 20:10:00 +02:00
..
.gitignore Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
Makefile.am Introduce virStrncpy. 2009-09-22 20:10:00 +02:00
THREADING.txt Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
dispatch.c Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
dispatch.h Rename daemon main code 2009-09-21 14:41:45 +01:00
event.c Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
event.h Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
libvirtd.aug Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
libvirtd.c Introduce virStrncpy. 2009-09-22 20:10:00 +02:00
libvirtd.conf Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
libvirtd.h Rename daemon main code 2009-09-21 14:41:45 +01:00
libvirtd.init.in Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
libvirtd.logrotate.in Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
libvirtd.policy-0 Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
libvirtd.policy-1 Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
libvirtd.sasl Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
libvirtd.sysconf Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
mdns.c Rename daemon main code 2009-09-21 14:41:45 +01:00
mdns.h Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
remote.c Introduce virStrncpy. 2009-09-22 20:10:00 +02:00
remote.h Rename daemon main code 2009-09-21 14:41:45 +01:00
remote_dispatch_args.h Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
remote_dispatch_prototypes.h Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
remote_dispatch_ret.h Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
remote_dispatch_table.h Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
remote_generate_stubs.pl Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00
test_libvirtd.aug Rename qemud/ directory to daemon/ 2009-09-21 14:41:42 +01:00