]> git.ipfire.org Git - thirdparty/kmod.git/commit
strbuf: Extract realloc
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 12 Nov 2024 14:36:54 +0000 (08:36 -0600)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Sun, 17 Nov 2024 21:35:13 +0000 (15:35 -0600)
commitb7e2c1eb58ad77beb938743d6a6b57b0f54c78cf
treea55379bc0701b4eaf1f38681851859955b90c15e
parentebd0476972bfdfbbc23825dc6d0683e9dceea45b
strbuf: Extract realloc

Extract the realloc from the size calculation so it can be shared with
other upcoming callers.

Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/239
shared/strbuf.c