]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/sysfs: use temporary buffer
authorKarel Zak <kzak@redhat.com>
Fri, 6 Jan 2023 14:58:16 +0000 (15:58 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 6 Jan 2023 14:58:16 +0000 (15:58 +0100)
commit35d26ae8f2a09bb18c275d7c847f2d5377d8f608
tree16d18627ea330a9e82ed040a5cb01ee9ab167f2d
parent3145da8887258de0f5683142f9a3e64d2b3216cc
lib/sysfs: use temporary buffer

It seems more readable (for humans and static analyzers) and safe
to use temporary buffer than use memmove to create absolute path.

Signed-off-by: Karel Zak <kzak@redhat.com>
lib/Makemodule.am
lib/sysfs.c
meson.build