Lines 169-175
Link Here
|
169 |
DIR *dp; |
169 |
DIR *dp; |
170 |
BTFILE *pbf; |
170 |
BTFILE *pbf; |
171 |
|
171 |
|
172 |
if( !getwd(full_cur) ) return -1; |
172 |
if( !getcwd(full_cur, MAXPATHLEN) ) return -1; |
173 |
|
173 |
|
174 |
if( cur_path ){ |
174 |
if( cur_path ){ |
175 |
strcpy(fn, full_cur); |
175 |
strcpy(fn, full_cur); |
Lines 293-299
Link Here
|
293 |
m_btfhead = pbf; |
293 |
m_btfhead = pbf; |
294 |
}else if( S_IFDIR & sb.st_mode ){ |
294 |
}else if( S_IFDIR & sb.st_mode ){ |
295 |
char wd[MAXPATHLEN]; |
295 |
char wd[MAXPATHLEN]; |
296 |
if( !getwd(wd) ) return -1; |
296 |
if( !getcwd(wd, MAXPATHLEN) ) return -1; |
297 |
m_directory = new char[strlen(pathname) + 1]; |
297 |
m_directory = new char[strlen(pathname) + 1]; |
298 |
#ifndef WINDOWS |
298 |
#ifndef WINDOWS |
299 |
if( !m_directory ) return -1; |
299 |
if( !m_directory ) return -1; |