Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
affb3c5
)
ecere: proper fox for: fixed FileListing::path was returning //path instead of /path...
author
Rejean Loyer
<rejean.loyer@gmail.com>
Fri, 16 Sep 2011 19:08:10 +0000
(15:08 -0400)
committer
Rejean Loyer
<rejean.loyer@gmail.com>
Fri, 16 Sep 2011 19:08:21 +0000
(15:08 -0400)
ecere/src/sys/File.ec
patch
|
blob
|
history
diff --git
a/ecere/src/sys/File.ec
b/ecere/src/sys/File.ec
index
89d9654
..
9d7d01b
100644
(file)
--- a/
ecere/src/sys/File.ec
+++ b/
ecere/src/sys/File.ec
@@
-1335,7
+1335,7
@@
static FileDesc FileFind(char * path, char * extensions)
if(path[0])
{
strcpy(file.path, path);
- if(path[1]
|| path[0] != DIR_SEP
)
+ if(path[1])
strcat(file.path, DIR_SEPS);
}
strcpy(file.name,de->d_name);
@@
-1611,8
+1611,7
@@
private class FileDesc : struct
{
strcpy(name,de->d_name);
strcpy(path, d.name);
- //if(d.name[0] && d.name[0]) // TOCHECK: what the heck is this?
- if(path[1] || path[0] != DIR_SEP)
+ if(d.name[0] && d.name[1])
strcat(path, DIR_SEPS);
strcat(path, name);
stat(path, &s);