65 is the length of the command structure's field.
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Wed, 29 Oct 2008 18:36:49 +0000 (18:36 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Wed, 29 Oct 2008 18:36:49 +0000 (18:36 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2804 94cd875c-1c1d-0410-91d2-eb244daf1a30

python/_libvserver.c

index c5eb892..3404c9d 100644 (file)
@@ -591,7 +591,7 @@ pyvserver_get_vhi_name(PyObject UNUSED *self, PyObject *args)
 {
   xid_t xid;
   vc_uts_type type;
-  char val[256];
+  char val[65];
 
   if (!PyArg_ParseTuple(args, "Ii", &xid, &type))
     return NULL;