[PATCH] Fix section-from-path > 1
mricon at kernel.org
Fri Jun 28 15:50:37 CEST 2013
On 28/06/13 05:06 AM, Lukas Fleischer wrote:
> When having found the first path separator occurrence at position i, we
> invoked strchr() on the same position i in subsequent iterations
> resulting in the same path separator being returned by strchr() over and
> over again. Increase the position by one to skip the occurrence that has
> just been found and advance to the next separator.
> Reported-by: Konstantin Ryabitsev <mricon at kernel.org>
> Signed-off-by: Lukas Fleischer <cgit at cryptocrack.de>
> Completely untested but I think something like this might fix it.
It appears to work correctly in my tests. Thanks!
Senior Systems Administrator
Linux Foundation Collab Projects
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 730 bytes
Desc: OpenPGP digital signature
More information about the CGit