From: Enrico Scholz Date: Wed, 4 Jan 2006 12:29:15 +0000 (+0000) Subject: vc_get_vhi_name_v13(): added comment near the strncpy(3) call which X-Git-Tag: version_0_30_210~39 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=701579564f959c60eefa6b12bc871bb603751e56;p=util-vserver.git 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 --- 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; }