git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1542
94cd875c-1c1d-0410-91d2-
eb244daf1a30
vcCfgStyle cur_style = vcCFG_NONE;
size_t l = strlen(revdir);
size_t l1;
- char path[l + sizeof(unsigned int)*3 + 2 + sizeof("/name")];
+ char path[l + sizeof(unsigned int)*3 + 3];
strcpy(path, revdir);
path[l] = '/';
vc_getVserverCtx(char const *id, vcCfgStyle style, bool honor_static, bool *is_running)
{
size_t l1 = strlen(id);
- char buf[sizeof(CONFDIR "//") + l1 + sizeof("/run")];
+ char buf[sizeof(CONFDIR "//") + l1 + sizeof("/context")];
if (style==vcCFG_NONE || style==vcCFG_AUTO)
style = vc_getVserverCfgStyle(id);