X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fsyscall_getvhiname-v13.hc;h=22d394768d5825df9f9473061274ec59689d2be8;hb=ec4370f7ebd7fb0ce7f002f5bf2c74f03acd3ec1;hp=e244dcdca925cdc0bd452d4b7c5daacabeeecd6b;hpb=3f3cf95f755f3ef1c31ad8e38153deb4ee214c66;p=util-vserver.git diff --git a/lib/syscall_getvhiname-v13.hc b/lib/syscall_getvhiname-v13.hc index e244dcd..22d3947 100644 --- a/lib/syscall_getvhiname-v13.hc +++ b/lib/syscall_getvhiname-v13.hc @@ -1,4 +1,4 @@ -// $Id: syscall_getvhiname-v13.hc,v 1.3 2005/07/03 17:49:56 ensc Exp $ --*- c -*-- +// $Id: syscall_getvhiname-v13.hc 2242 2006-01-04 12:29:15Z ensc $ --*- c -*-- // Copyright (C) 2004 Enrico Scholz // @@ -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; }