1
0
Fork 0

Fix some compile warnings

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1210
This commit is contained in:
Sjoerd van der Berg 2003-08-31 20:05:23 +00:00
parent d3ee970936
commit 10a29d64de

View file

@ -20,7 +20,7 @@
DIR * opendir(const char *dirname) {
static DIR dir;
int len;
size_t len;
/* Stash the directory name */
strcpy(dir.pathName,dirname);
@ -81,7 +81,7 @@ struct dirent * readdir(DIR *dirp) {
memset(&d,'\0', sizeof(struct dirent));
strcpy(d.d_name,dirp->findFileData.cFileName);
d.d_namlen = strlen(d.d_name);
d.d_namlen = (char)strlen(d.d_name);
return &d;
}