]> Savannah Git Hosting - gnulib.git/commit
readutmp: simplify extract_trimmed_name via ximemdup0
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 3 Aug 2023 22:31:48 +0000 (15:31 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 4 Aug 2023 01:20:50 +0000 (18:20 -0700)
commit39a4cb0afdf4f2a1e6c2f3176b84e5b4cfe8996d
treedefaabb39598c9598269a521bf018e4831e73a1c
parent2ae6faf9c78384dc6a2674b62dd56ff153cd51f6
readutmp: simplify extract_trimmed_name via ximemdup0

* lib/readutmp.c (extract_trimmed_name): Simplify.
* modules/readutmp (Depends-on):
Add strnlen, which was a missing dependency.

* lib/readutmp.c: Include xmemdup0.
(extract_trimmed_name): Simplify.
* modules/readutmp (Depends-on): Add xmemdup0.
Add strnlen, which was a missing dependency already.
ChangeLog
lib/readutmp.c
modules/readutmp