vc_get_vhi_name_v13(): added comment near the strncpy(3) call which
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 4 Jan 2006 12:29:15 +0000 (12:29 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 4 Jan 2006 12:29:15 +0000 (12:29 +0000)
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

index 2dccaae..3575684 100644 (file)
@@ -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;
 }