Commit 773d5831 by Christian Brauner Committed by Stéphane Graber

conf/ile: use lxc_safe_uint() in config_pts()

parent 64b7bd70
......@@ -294,7 +294,7 @@ struct lxc_conf {
int is_execute;
char *fstab;
int tty;
int pts;
unsigned int pts;
int reboot;
int need_utmp_watch;
signed long personality;
......
......@@ -1137,9 +1137,8 @@ static int config_personality(const char *key, const char *value,
static int config_pts(const char *key, const char *value,
struct lxc_conf *lxc_conf)
{
int maxpts = atoi(value);
lxc_conf->pts = maxpts;
if (lxc_safe_uint(value, &lxc_conf->pts) < 0)
return -1;
return 0;
}
......
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