unshare: fix typo in uint_to_id()

Reported-by: Daniel Gerber <dg@atufi.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
pull/1573/head
Karel Zak 9 months ago
parent 8bf585f7bb
commit d241d28c9e
  1. 2
      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"));
}
/**

Loading…
Cancel
Save