Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/sink_wavwrite.c

    rb03f1bf r65a4fb4  
    212212
    213213  // fwrite(*, *, 1, s->fid) was called 13 times, check success
    214   if (written != 13) {
    215     AUBIO_STRERR("sink_wavwrite: writing header to %s failed, expected %d"
    216         " write but got only %d (%s)\n", s->path, 13, written, errorstr);
     214  if (written != 13 || fflush(s->fid)) {
     215    AUBIO_STRERR("sink_wavwrite: writing header to %s failed"
     216        " (wrote %d/%d, %s)\n", s->path, written, 13, errorstr);
     217    fclose(s->fid);
     218    s->fid = NULL;
    217219    return AUBIO_FAIL;
    218220  }
Note: See TracChangeset for help on using the changeset viewer.