user: simplify memsave() to strsave()
authormillert <millert@openbsd.org>
Mon, 15 May 2023 17:00:24 +0000 (17:00 +0000)
committermillert <millert@openbsd.org>
Mon, 15 May 2023 17:00:24 +0000 (17:00 +0000)
commit580bd31ce9b7737b17363a19d7dedfdc6eff78a8
tree0079011f1b515792f84f50e846eaa689af4b0c4b
parent510f4386e1535b967eb78c315ea65daf4f87c7db
user: simplify memsave() to strsave()
All callers of memsave() pass strlen(s) as the size argument.
We can eliminate the size argument and just use strdup(3) instead.
OK tb@
usr.sbin/user/user.c