From: John L. <mov...@us...> - 2001-09-06 20:41:50
|
Update of /cvsroot/oprofile/oprofile/dae In directory usw-pr-cvs1:/tmp/cvs-serv28222/dae Modified Files: opd_proc.c Log Message: fix core dump Index: opd_proc.c =================================================================== RCS file: /cvsroot/oprofile/oprofile/dae/opd_proc.c,v retrieving revision 1.68 retrieving revision 1.69 diff -u -d -r1.68 -r1.69 --- opd_proc.c 2001/09/06 18:13:28 1.68 +++ opd_proc.c 2001/09/06 20:41:48 1.69 @@ -81,7 +81,7 @@ struct opd_image* image = &opd_images[i]; for (j = 0 ; j < op_nr_counters ; ++j) { if (image->sample_files[j].fd > 1) - msync(image->sample_files[i].start, image->len + sizeof(struct opd_footer), MS_ASYNC); + msync(image->sample_files[j].start, image->len + sizeof(struct opd_footer), MS_ASYNC); } } |