Commit a1649fd3 authored by Tycho Andersen's avatar Tycho Andersen Committed by Pavel Emelyanov

mnt: typo fix

We only malloc() size amount of space, so we shouldn't snprintf past that.
Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent e72ccc1d
......@@ -769,7 +769,7 @@ static int resolve_external_mounts(struct mount_info *info)
if (!p)
return -1;
ret = snprintf(p, size+1, "%s%s", match->mountpoint + 1, m->root);
ret = snprintf(p, size, "%s%s", match->mountpoint + 1, m->root);
if (ret < 0 || ret >= size) {
free(p);
return -1;
......
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