*** empty log message ***

svn path=/trunk/; revision=1570
This commit is contained in:
jean 2001-01-25 18:59:49 +00:00
parent 12e9069480
commit 03832de6e4

View file

@ -222,10 +222,12 @@ __fileno_alloc(HANDLE hFile, int mode)
maxfno += 255;
fileno_modes = (fileno_modes_type *)malloc(maxfno * sizeof(fileno_modes_type));
if ( old_fileno_modes != NULL )
{
memcpy(fileno_modes, old_fileno_modes, oldcount * sizeof(fileno_modes_type));
memset(fileno_modes + oldcount, 0, (maxfno-oldcount)*sizeof(fileno_modes));
free ( old_fileno_modes );
}
memset(fileno_modes + oldcount, 0, (maxfno-oldcount)*sizeof(fileno_modes));
}
/* Fill in the value */
fileno_modes[i].fd = i;