diff options
Diffstat (limited to 'src/plugins/fs/namespace.c')
-rw-r--r-- | src/plugins/fs/namespace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/fs/namespace.c b/src/plugins/fs/namespace.c index fea5103a..176dc5fe 100644 --- a/src/plugins/fs/namespace.c +++ b/src/plugins/fs/namespace.c | |||
@@ -225,7 +225,7 @@ static int updateView(const ECRS_FileInfo * fi, | |||
225 | else { | 225 | else { |
226 | char *dotdot; | 226 | char *dotdot; |
227 | 227 | ||
228 | while(dotdot = strstr(filename, "..")) | 228 | while ( NULL != (dotdot = strstr(filename, ".."))) |
229 | dotdot[0] = dotdot[1] = '_'; | 229 | dotdot[0] = dotdot[1] = '_'; |
230 | } | 230 | } |
231 | 231 | ||
@@ -341,7 +341,7 @@ static int addNamespaceContentToModel(void * cls, | |||
341 | else { | 341 | else { |
342 | char *dotdot; | 342 | char *dotdot; |
343 | 343 | ||
344 | while(dotdot = strstr(filename, "..")) | 344 | while (NULL != (dotdot = strstr(filename, ".."))) |
345 | dotdot[0] = dotdot[1] = '_'; | 345 | dotdot[0] = dotdot[1] = '_'; |
346 | } | 346 | } |
347 | desc = ECRS_getFirstFromMetaData(fi->meta, | 347 | desc = ECRS_getFirstFromMetaData(fi->meta, |