aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fs/namespace.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fs/namespace.c')
-rw-r--r--src/plugins/fs/namespace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/fs/namespace.c b/src/plugins/fs/namespace.c
index 5f9c99c5..fea5103a 100644
--- a/src/plugins/fs/namespace.c
+++ b/src/plugins/fs/namespace.c
@@ -223,7 +223,7 @@ static int updateView(const ECRS_FileInfo * fi,
223 if (filename == NULL) 223 if (filename == NULL)
224 filename = STRDUP(_("no name given")); 224 filename = STRDUP(_("no name given"));
225 else { 225 else {
226 char dotdot; 226 char *dotdot;
227 227
228 while(dotdot = strstr(filename, "..")) 228 while(dotdot = strstr(filename, ".."))
229 dotdot[0] = dotdot[1] = '_'; 229 dotdot[0] = dotdot[1] = '_';
@@ -339,7 +339,7 @@ static int addNamespaceContentToModel(void * cls,
339 if (filename == NULL) 339 if (filename == NULL)
340 filename = STRDUP(_("no name given")); 340 filename = STRDUP(_("no name given"));
341 else { 341 else {
342 char dotdot; 342 char *dotdot;
343 343
344 while(dotdot = strstr(filename, "..")) 344 while(dotdot = strstr(filename, ".."))
345 dotdot[0] = dotdot[1] = '_'; 345 dotdot[0] = dotdot[1] = '_';