*** 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

@ -221,10 +221,12 @@ __fileno_alloc(HANDLE hFile, int mode)
fileno_modes_type *old_fileno_modes = fileno_modes;
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));
if ( old_fileno_modes != NULL )
{
memcpy(fileno_modes, old_fileno_modes, oldcount * sizeof(fileno_modes_type));
free ( old_fileno_modes );
}
memset(fileno_modes + oldcount, 0, (maxfno-oldcount)*sizeof(fileno_modes));
free ( old_fileno_modes );
}
/* Fill in the value */