parent
e4d7a94252
commit
cd29a7cb54
8
bntseq.c
8
bntseq.c
|
|
@ -197,7 +197,13 @@ bntseq_t *bns_restore(const char *prefix)
|
||||||
}
|
}
|
||||||
while (c != '\n' && c != EOF) c = fgetc(fp);
|
while (c != '\n' && c != EOF) c = fgetc(fp);
|
||||||
i = 0;
|
i = 0;
|
||||||
} else str[i++] = c; // FIXME: potential segfault here
|
} else {
|
||||||
|
if (i >= 1022) {
|
||||||
|
fprintf(stderr, "[E::%s] sequence name longer than 1023 characters. Abort!\n", __func__);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
str[i++] = c;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
kh_destroy(str, h);
|
kh_destroy(str, h);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
|
|
||||||
2
main.c
2
main.c
|
|
@ -4,7 +4,7 @@
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
|
|
||||||
#ifndef PACKAGE_VERSION
|
#ifndef PACKAGE_VERSION
|
||||||
#define PACKAGE_VERSION "0.7.17-r1194-dirty"
|
#define PACKAGE_VERSION "0.7.17-r1198-dirty"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int bwa_fa2pac(int argc, char *argv[]);
|
int bwa_fa2pac(int argc, char *argv[]);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue