about summary refs log tree commit diff
path: root/ui-tree.h
diff options
context:
space:
mode:
authorLukas Fleischer <cgit@cryptocrack.de>2013-06-28 08:58:14 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2013-08-12 13:14:11 -0600
commit86e309fcb5ba64d29821b1e40407a4007e34df75 (patch)
tree16a7a9bee74cefb9916dbe229f492dc23cf28f3d /ui-tree.h
parentMakefile: Change default prefix to "/usr/local" (diff)
downloadcgit-pink-86e309fcb5ba64d29821b1e40407a4007e34df75.tar.gz
cgit-pink-86e309fcb5ba64d29821b1e40407a4007e34df75.zip
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>
Diffstat (limited to 'ui-tree.h')
0 files changed, 0 insertions, 0 deletions
title='2022-06-03 10:34:51 -0400'>2022-06-03Stop polling stdin after EOFJune McEnroe 2022-06-02Set TABSIZE=4June McEnroe 2022-06-02Do basic match highlightingJune McEnroe 2022-06-02Clean up parsing a littleJune McEnroe 2022-06-02Don't duplicate path stringJune McEnroe 2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe 2022-06-02Add initial working version of qfJune McEnroe 2022-05-29Set prompt for okshJune McEnroe