From 24bb721b3c1dc0b15d74ccecda03744357af558d Mon Sep 17 00:00:00 2001 From: oroborus Date: Wed, 3 Sep 2008 09:58:41 +0000 Subject: - 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 --- src/base/textFile.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/base/textFile.c') 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(); -- cgit v1.2.3