Skip to content

Commit

Permalink
fix strange garbage results
Browse files Browse the repository at this point in the history
needs to be reviewed by maintainers
  • Loading branch information
thehesiod committed May 1, 2017
1 parent 23c14bd commit 09ba25c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libsrc/memio.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,8 +382,9 @@ fprintf(stderr,"memio_open: initial memory: %lu/%lu\n",(unsigned long)memio->mem
(void)close(fd);
}

/* Use half the filesize as the blocksize ; why? */
sizehint = filesize/2;
/* Return 8192 as large values cause: https://github.com/Unidata/netcdf-c/issues/401 Why?
Note: File modes use: blksize(fd); */
sizehint = 8192;

fd = nc__pseudofd();
*((int* )&nciop->fd) = fd;
Expand Down

0 comments on commit 09ba25c

Please sign in to comment.