Ticket #21611: patch-mddisplay.c.diff

File patch-mddisplay.c.diff, 954 bytes (added by mjhsieh@…, 15 years ago)
  • mddisplay.c

    old new  
    35983598
    35993599   // Write the movie and view structs, which contain transformation matrices,
    36003600   // 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));
    36023602   f = fopen_or_exit_if_error(sesFileName,"wb");
    36033603   fwrite_or_exit_if_error(&movie,sizeof (movie),1,f);
    36043604   fwrite_or_exit_if_error(&view,sizeof (view),1,f);
     
    52255225      sizeof(atomattrib) *
    52265226            fread(&attribs[nat+nres+1],sizeof(atomattrib),1,f);
    52275227
    5228    printf("%d attribute bytes read (%d attribute records).\n",
     5228   printf("%d attribute bytes read (%ld attribute records).\n",
    52295229      attribytesread,attribytesread/sizeof(atomattrib));
    52305230
    52315231   /* CHECK FOR BOX COORDS */