[PATCH] Fix section-from-path > 1
Konstantin Ryabitsev
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!
Best,
--
Konstantin Ryabitsev
Senior Systems Administrator
Linux Foundation Collab Projects
Montréal, Québec
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 730 bytes
Desc: OpenPGP digital signature
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20130628/8b73e5d8/attachment.asc>
More information about the CGit
mailing list