Commit c8154faf authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

net: Use snprintf instead of sprintf

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent fac0e2d1
......@@ -101,7 +101,7 @@ static int ipv4_conf_op(char *tgt, int *conf, int op, NetnsEntry **netns)
continue;
}
sprintf(path[i], "%s/%s/%s", NET_CONF_PATH, tgt, devconfs[i]);
snprintf(path[i], MAX_CONF_OPT_PATH, "%s/%s/%s", NET_CONF_PATH, tgt, devconfs[i]);
req[ri].name = path[i];
req[ri].arg = &conf[i];
req[ri].type = CTL_32;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment