[prev in list] [next in list] [prev in thread] [next in thread]
List: cgit
Subject: [PATCH] Fix section-from-path > 1
From: mricon () kernel ! org (Konstantin Ryabitsev)
Date: 2013-06-28 13:50:37
Message-ID: 51CD94AD.5010300 () kernel ! org
[Download RAW message or body]
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>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic