]> git.ipfire.org Git - thirdparty/kmod.git/commit
depmod: use stack strbuf where possible
authorTobias Stoeckmann <tobias@stoeckmann.org>
Mon, 24 Feb 2025 18:49:40 +0000 (19:49 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 7 Mar 2025 04:57:37 +0000 (22:57 -0600)
commit5350ef99018de5310650f65683ef7037cf87b14c
treedbf52d99280ab34befe2b91f128b0cffb05d927c
parent5c38d457a093853be002a950c8266cc2c4839db8
depmod: use stack strbuf where possible

The deps bin output uses a strbuf. A size of 2048 covers all cases
on current Arch Linux (max used size is 1548) and removes heap
allocations.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Link: https://github.com/kmod-project/kmod/pull/296
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
tools/depmod.c