Ignore:
Timestamp:
Apr 24, 2015, 7:28:43 PM (5 years ago)
Author:
ldelgass
Message:

Don't abort on bad number of bytes, just return an error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nanovis/trunk/FlowCmd.cpp

    r4895 r5302  
    210210    } else if ((length > 14) && (strncmp(bytes, "# vtk DataFile", 14) == 0)) {
    211211        TRACE("VTK loading...");
    212         if (length <= 0) {
    213             ERROR("data buffer is empty");
    214             abort();
    215         }
    216212#ifdef USE_VTK
    217213        volume = load_vtk_volume_stream(flow->name(), bytes, length);
Note: See TracChangeset for help on using the changeset viewer.