Revert "lib/util: Expose strv_addn() for adding string with specified length"
authorMartin Schwenke <martin@meltin.net>
Mon, 29 Feb 2016 08:49:39 +0000 (19:49 +1100)
committerVolker Lendecke <vl@samba.org>
Mon, 29 Feb 2016 10:55:23 +0000 (11:55 +0100)
commit049e47b4434c745f650dcf6b599eaf886c95c506
tree58700a23191d3830a4581cc9caba4686db5b54cd
parentabd8b182447fce6dc1436e8ff3907b871705d7e0
Revert "lib/util: Expose strv_addn() for adding string with specified length"

This reverts commit 0c61dd15137b4603bd47b3d6ae18ded6bd18ffae.

The intention of strv_addn() is to be able to add some number of
characters from an existing string.  This implementation carelessly
assumes that the old _strv_append() added the trailing NUL to form a
valid strv.  That's not true.

New implementation to follow.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Volker Lendecke <vl@samba.org>
lib/util/strv.c
lib/util/strv.h