fixed b_strndup