Permalink
Browse files

Fixed bug in input parser--failed to allocate space for the null term…

…inator
  • Loading branch information...
1 parent 27a4809 commit 261c794c55f2f55e8e92458ddfcbac9635ed2c99 @wltrimbl wltrimbl committed Apr 5, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 clipper/fastq-lib.cpp
View
@@ -361,7 +361,7 @@ int getstr (char ** lineptr, size_t *n, FILE * stream, char terminator, int offs
NUL-terminate the line buffer. */
assert(*n - nchars_avail == read_pos - *lineptr);
- if (nchars_avail < 1)
+ if (nchars_avail < 2)
{
if (*n > 64)
*n *= 2;

0 comments on commit 261c794

Please sign in to comment.