diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-09-03 09:58:41 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-09-03 09:58:41 +0000 |
| commit | 24bb721b3c1dc0b15d74ccecda03744357af558d (patch) | |
| tree | e4af6ea2eedb649b55689f141fb8bf343875165f /src/base/textFile.c | |
| parent | 85c0f71d6e90a451f64cd032a3e58157d57dc226 (diff) | |
- opravene regresnie, kotre vznikli, pri prepise naciatavania aren z *.zip
( a odstranene prebytocne subory z adresarovej struktury -- tie ktore su uz zabalene v zip )
git-svn-id: http://opensvn.csie.org/tuxanci_ng@265 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/base/textFile.c')
| -rwxr-xr-x | src/base/textFile.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/base/textFile.c b/src/base/textFile.c index b7668ef..48e5044 100755 --- a/src/base/textFile.c +++ b/src/base/textFile.c @@ -14,11 +14,8 @@ textFile_t* newTextFile(char *s) textFile_t *new; char path[STR_PATH_SIZE]; assert( s != NULL ); -#ifndef __WIN32__ - if( s[0] == '/' ) -#else - if( s[1] == ':' ) -#endif + + if( isFillPath(s) ) { strcpy(path, s); } @@ -28,6 +25,7 @@ textFile_t* newTextFile(char *s) strcat(path, "/"); strcat(path, s); } + new = malloc(sizeof(textFile_t)); new->file = strdup(path); new->text = newList(); |