lh3/seqtk — pull request #24 by kdmurray91 (2014-02-05 01:00:46+00:00)
Title: fix segfault in seqtk sample with large N

If the given to seqtk sample is too large,

buf = calloc(num, sizeof(kseq_t);
will fail, leading to a segfault later in `cpy_kseq`, where `buf` (which is == NULL) is dereferenced.

This fixes this, by exiting gracefully.