diff --git a/TANmask.c b/TANmask.c index 7e65a65..d5a4d8a 100644 --- a/TANmask.c +++ b/TANmask.c @@ -97,7 +97,7 @@ static void TANDEM(int aread, Overlap *ovls, int novl) { int i; Path *ipath; - + evnum = 0; for (i = 0; i < novl; i++) { ipath = &(ovls[i].path); @@ -188,7 +188,12 @@ static int make_a_pass(FILE *input, void (*ACTION)(int, Overlap *, int), int tra else TBYTES = sizeof(uint16); - Read_Overlap(input,ovls); + int rv = Read_Overlap(input,ovls); + if (rv) + { + return 0; + } + if (trace) { if (ovls[0].path.tlen > pmax) { pmax = 1.2*(ovls[0].path.tlen)+10000; diff --git a/datander.c b/datander.c index e49d307..a85a79a 100644 --- a/datander.c +++ b/datander.c @@ -20,7 +20,7 @@ * Date : March 27, 2016 * *********************************************************************************************/ - + #include #include #include @@ -210,7 +210,7 @@ int main(int argc, char *argv[]) if (VERBOSE) printf("\n%s\n",command); system(command); - sprintf(command,"LAmerge TAN.%s.las %s/%s.T*.S.las",SORT_PATH,broot,broot); + sprintf(command,"LAmerge TAN.%s.las %s/%s.T*.S.las",broot,SORT_PATH,broot); if (VERBOSE) printf("%s\n",command); system(command);