Ticket #21611: patch-mddisplay.c.diff
File patch-mddisplay.c.diff, 954 bytes (added by mjhsieh@…, 15 years ago) |
---|
-
mddisplay.c
old new 3598 3598 3599 3599 // Write the movie and view structs, which contain transformation matrices, 3600 3600 // as well as other info such as scaling 3601 printf(" Writing session file %s (% d bytes).\n", sesFileName,sizeof(movie) + sizeof (view));3601 printf(" Writing session file %s (%ld bytes).\n", sesFileName,sizeof(movie) + sizeof (view)); 3602 3602 f = fopen_or_exit_if_error(sesFileName,"wb"); 3603 3603 fwrite_or_exit_if_error(&movie,sizeof (movie),1,f); 3604 3604 fwrite_or_exit_if_error(&view,sizeof (view),1,f); … … 5225 5225 sizeof(atomattrib) * 5226 5226 fread(&attribs[nat+nres+1],sizeof(atomattrib),1,f); 5227 5227 5228 printf("%d attribute bytes read (% d attribute records).\n",5228 printf("%d attribute bytes read (%ld attribute records).\n", 5229 5229 attribytesread,attribytesread/sizeof(atomattrib)); 5230 5230 5231 5231 /* CHECK FOR BOX COORDS */