]> git.ipfire.org Git - pakfire.git/commit
string: Refactor replace function
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 25 Sep 2023 16:54:28 +0000 (16:54 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 25 Sep 2023 16:54:28 +0000 (16:54 +0000)
commit0d4e3f69d3029ded9522ecbc96b9802e7ee1f4c0
treed3b47694b9a94fb7b223d014d36f8ae8874bc053
parentc2bf02befb5573e2e3b05a7bc24eaa6890b53de2
string: Refactor replace function

The old version was slightly over-engineered and the static analyzer was
not too happy with it. Instead of debugging any problems, I wrote this
version which is a lot easier and should be more bug-free.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/string.c