Re: [PATCH v2] uclibc:fix basename modify the input path

2015-01-20 Thread Bernhard Reutner-Fischer
On 24 September 2014 at 04:47, Wangyufen wangyu...@huawei.com wrote: From: Wang Yufen wangyu...@huawei.com I tested basename(path), path is ///, the basename(path) returned /, but the input path also be modified to /. It because in basename impl, last[1] = 0; modified the input path, I think

[PATCH v2] uclibc:fix basename modify the input path

2014-09-23 Thread Wangyufen
From: Wang Yufen wangyu...@huawei.com I tested basename(path), path is ///, the basename(path) returned /, but the input path also be modified to /. It because in basename impl, last[1] = 0; modified the input path, I think that isn't correct. This patch fix this problem. Signed-off-by: Wang