pike.git/
src/
combine_path.h
Branch:
Tag:
Non-build tags
All tags
No tags
2001-06-10
2001-06-10 16:02:40 by Henrik Grubbström (Grubba) <grubba@grubba.org>
7ebc3ea9d138085ba0c41758c8d41e0be960ba2e (
12
lines) (+
7
/-
5
)
[
Show
|
Annotate
]
Branch:
7.9
Yet another bugfix.
Rev: src/combine_path.h:1.4
1:
/*
-
* $Id: combine_path.h,v 1.
3
2001/06/10
14
:
53
:
29
grubba Exp $
+
* $Id: combine_path.h,v 1.
4
2001/06/10
16
:
02
:
40
grubba Exp $
* * Combine path template. *
145:
tmp++; }
-
if(index_shared_string(s->s,tmp)=='.' &&
-
index_shared_string(s->s,tmp+1)=='.' &&
+
if
(
(tmp+2 < 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))) break;