From: Karel Zak Date: Tue, 18 Jan 2022 11:46:58 +0000 (+0100) Subject: unshare: fix typo in uint_to_id() X-Git-Tag: v2.38-rc1~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d241d28c9e625a6c8e96235f78a2af876d0db4d9;p=thirdparty%2Futil-linux.git unshare: fix typo in uint_to_id() Reported-by: Daniel Gerber Signed-off-by: Karel Zak --- diff --git a/sys-utils/unshare.c b/sys-utils/unshare.c index 6723a34eb3..b8173b4fe4 100644 --- a/sys-utils/unshare.c +++ b/sys-utils/unshare.c @@ -388,7 +388,7 @@ static int uint_to_id(const char *name, size_t sz) char buf[UID_BUFSIZ]; mem2strcpy(buf, name, sz, sizeof(buf)); - return strtoul_or_err(name, _("could not parse ID")); + return strtoul_or_err(buf, _("could not parse ID")); } /**