sbase/libutil
Roberto E. Vargas Caballero 22f110db28 libutil: Remove free() from strnsub()
The free() was added in the wrong assumption that xargs was not
freeing the argument in the position replaced, but it actually
does it.

Also, removing the call to free() makes more general the function.
2023-09-22 11:44:58 +02:00
..
concat.c concat: Use plain read/write instead of buffered stdio 2017-07-14 07:50:47 +02:00
cp.c Use *at functions with appropriate flags instead of lstat/lchown 2020-03-05 00:45:53 -08:00
crypt.c Don't use buffered IO (fread) when not appropriate 2017-07-03 21:04:14 +02:00
ealloc.c
enmasse.c
eprintf.c
eregcomp.c
estrtod.c
fnck.c cp: don't abort when src and dest file are the same 2023-04-12 21:09:12 -07:00
fshut.c
getlines.c libutil/getlines: Use reallocarray 2019-12-31 13:39:08 -08:00
human.c
linecmp.c linecmp: Handle NUL bytes properly 2016-07-09 10:09:50 +01:00
md5.c
memmem.c Support NUL-containing lines in sort(1) 2016-03-10 08:48:09 +00:00
mkdirp.c mkdir: Fix created directory permissions 2017-07-03 21:03:11 +02:00
mode.c chmod: Implement X perm symbol 2020-01-06 13:47:26 -08:00
parseoffset.c
putword.c
reallocarray.c libutil: Add enreallocarray 2019-04-16 17:41:39 -07:00
recurse.c libutil/recurse: Simplify adding trailing slash 2020-06-20 18:48:14 -07:00
rm.c libutil/recurse: Use a single path buffer, and directory fd 2020-03-05 00:45:53 -08:00
sha1.c
sha224.c
sha256.c
sha384.c
sha512-224.c add sha512-224sum (SHA512/224) and sha512-256sum (SHA512/256) 2016-02-24 10:40:57 +00:00
sha512-256.c add sha512-224sum (SHA512/224) and sha512-256sum (SHA512/256) 2016-02-24 10:40:57 +00:00
sha512.c
strcasestr.c
strlcat.c
strlcpy.c
strnsubst.c libutil: Remove free() from strnsub() 2023-09-22 11:44:58 +02:00
strsep.c
strtonum.c
unescape.c libutil/unescape: NULL terminate unescaped string 2017-03-24 10:40:32 +01:00
writeall.c libutil: Add writeall utility function 2017-07-03 21:04:12 +02:00