version 1.1 | | version 1.2 |
---|
| | |
/* | | /* |
* static char *rcsid_style_c = | | * static char *rcsid_style_c = |
* "$Id: style.c,v 1.1 1999/04/02 19:10:03 uid200 Exp $"; | | * "$Id: style.c,v 1.2 1999/04/15 00:19:47 cvs Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
v = new; | | v = new; |
} | | } |
| | |
dsize = &d->d_name[sizeof(d->d_name)] - (char *) d; | | /* dsize = &d->d_name[sizeof(d->d_name)] - (char *) d; */ |
v[i] = (struct dirent *) malloc (dsize); | | v[i] = (struct dirent *) malloc (d->d_reclen); |
if (v[i] == NULL) | | if (v[i] == NULL) |
goto lose; | | goto lose; |
| | |
memcpy (v[i++], d, dsize); | | memcpy (v[i++], d, d_d->reclen); |
} | | } |
| | |
if (errno != 0) | | if (errno != 0) |