Difference for random_maps/style.c from version 1.1 to 1.2


version 1.1 version 1.2
Line 1
 
Line 1
 /*  /*
  * 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 $";
  */   */
   
 /*  /*
Line 106
 
Line 106
      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)


Legend:
line(s) removed in v.1.1 
line(s) changed
 line(s) added in v.1.2

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:58