From dbe48f28b1875dbb4e67de92ad905f83f3f2757d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Sun, 10 Jun 2001 18:34:57 +0200 Subject: [PATCH] Even more bugfixes. Rev: src/combine_path.h:1.5 --- src/combine_path.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/combine_path.h b/src/combine_path.h index fc82630e21..8cd44b33ee 100644 --- a/src/combine_path.h +++ b/src/combine_path.h @@ -1,5 +1,5 @@ /* - * $Id: combine_path.h,v 1.4 2001/06/10 16:02:40 grubba Exp $ + * $Id: combine_path.h,v 1.5 2001/06/10 16:34:57 grubba Exp $ * * Combine path template. * @@ -145,11 +145,11 @@ static void APPEND_PATH(struct string_builder *s, tmp++; } - if ((tmp+2 < s->s->len) && + if ((tmp+1 < s->s->len) && (index_shared_string(s->s,tmp)=='.') && (index_shared_string(s->s,tmp+1)=='.') && - ( IS_SEP(index_shared_string(s->s,tmp+2)) || - !index_shared_string(s->s,tmp+2))) + ( (tmp+2 == s->s->len) || + IS_SEP(index_shared_string(s->s,tmp+2))) break; -- GitLab