]> granicus.if.org Git - cgit/commit
Fix section-from-path > 1
authorLukas Fleischer <cgit@cryptocrack.de>
Fri, 28 Jun 2013 08:58:14 +0000 (08:58 +0000)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 12 Aug 2013 19:14:11 +0000 (13:14 -0600)
commit86e309fcb5ba64d29821b1e40407a4007e34df75
tree16a7a9bee74cefb9916dbe229f492dc23cf28f3d
parent1a194aa2c79aa9514b4a2a302b05ba641811fc9f
Fix section-from-path > 1

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@kernel.org>
Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
scan-tree.c