Ignore:
Timestamp:
Apr 4, 2009, 4:49:00 PM (15 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/dxReader2.cpp

    r1325 r1380  
    3535
    3636    f = fopen(dxfilename, "w");
    37     fwrite(buf, sizeof(char), nBytes, f);
     37
     38    ssize_t nWritten;
     39    nWritten = fwrite(buf, sizeof(char), nBytes, f);
    3840    fclose(f);
     41    if (nWritten != nBytes) {
     42        outcome.addError("Can't read %d bytes from file \"%s\"\n",
     43                         nBytes, dxfilename);
     44        return false;
     45    }
    3946
    4047    Rappture::DX dxObj(outcome, dxfilename);
Note: See TracChangeset for help on using the changeset viewer.