From 701579564f959c60eefa6b12bc871bb603751e56 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Wed, 4 Jan 2006 12:29:15 +0000 Subject: [PATCH] vc_get_vhi_name_v13(): added comment near the strncpy(3) call which tells that an explicit termination with '\0' is not wanted git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2242 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- util-vserver/lib/syscall_getvhiname-v13.hc | 1 + 1 file changed, 1 insertion(+) diff --git a/util-vserver/lib/syscall_getvhiname-v13.hc b/util-vserver/lib/syscall_getvhiname-v13.hc index 2dccaae..3575684 100644 --- a/util-vserver/lib/syscall_getvhiname-v13.hc +++ b/util-vserver/lib/syscall_getvhiname-v13.hc @@ -44,5 +44,6 @@ vc_get_vhi_name_v13(xid_t xid, vc_uts_type type, char *val, size_t len) l = l>len ? len : l; strncpy(val, cmd.name, l); + /* DO NOT terminate 'val' with '\0' explicitly */ return 0; } -- 1.8.1.5