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 <[email protected]> > Signed-off-by: Lukas Fleischer <[email protected]> > --- > 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
signature.asc
Description: OpenPGP digital signature
_______________________________________________ CGit mailing list [email protected] http://lists.zx2c4.com/mailman/listinfo/cgit
