[PATCH 3/3] all: get rid of strndupa