return r;
#else
- DIR* dir = opendir(path);
+ char* fxpath = cm_strcat(path, "/");
+ DIR* dir = opendir(fxpath);
if(dir != NULL) {
char** r = malloc(sizeof(*r));
struct dirent* d;
free(old);
closedir(dir);
+ free(fxpath);
return r;
} else {
+ free(fxpath);
return NULL;
}
#endif
close_socket(sock);
#if defined(__MINGW32__) || defined(_MSC_VER) || defined(__BORLANDC__) || defined(__WATCOMC__)
#ifdef __NETWARE__
+ ExitThread(EXIT_THREAD, 0);
#elif defined(__DOS__)
#else
_endthread();