]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/path: use _vreadf_buffer for _cpuparse()
authorThomas Weißschuh <thomas@t-8ch.de>
Mon, 13 May 2024 08:46:39 +0000 (10:46 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Mon, 13 May 2024 19:02:34 +0000 (21:02 +0200)
commit961dfad332144d13e36a15132bc5d625b212a5de
tree329811ff9228c6401f953c6a3f8a30ff8496be68
parent1a45153e46297451d7a79c4708d823ff64c8c514
lib/path: use _vreadf_buffer for _cpuparse()

ul_path_vreadf_buffer already provides zero-termination and newline
trimming, so make use of it.

We now could read more than a single line, but the files this is used on
contain only a single line anyways.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
lib/path.c