********>Bugfix 9: Authors: Terry Lang Date: July 14, 2005 Program: dock Description: When the sphere file produced by sphgen was read into dock, there was no criterion for termination at the end of the first cluster. This lack occasionally resulted in a segmentation error. Fix: Make the following changes to the file src/orient.cpp *** orient.cpp 25 Mar 2005 18:50:48 -0000 1.1 --- orient.cpp 16 Jul 2005 01:37:58 -0000 *************** *** 357,363 **** // read in the spheres while(fgets(line, 500, sphere_file)) { ! sscanf(line, "%d %f %f %f %f %d %d %d", &tmp.surface_point_i, &tmp.crds.x, &tmp.crds.y, &tmp.crds.z, &tmp.radius, &tmp.surface_point_j, &tmp.critical_cluster, &color_int); // assign the proper color label tmp.color = "null"; --- 357,368 ---- // read in the spheres while(fgets(line, 500, sphere_file)) { ! ! sscanf(line, "%s", junk); ! if(strcmp(junk, "cluster") == 0) ! break; ! else ! sscanf(line, "%d %f %f %f %f %d %d %d", &tmp.surface_point_i, &tmp.crds.x, &tmp.crds.y, &tmp.crds.z, &tmp.radius, &tmp.surface_point_j, &tmp.critical_cluster, &color_int); // assign the proper color label tmp.color = "null";