From b0d31fa2631622d09730c85b5ce3e82b4886dd45 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Fri, 26 Jan 2018 10:57:14 +0000 Subject: Always check input data for strtok - unless -no-check is used --- src/io.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/io.cpp') diff --git a/src/io.cpp b/src/io.cpp index d20b473..941bacf 100644 --- a/src/io.cpp +++ b/src/io.cpp @@ -707,6 +707,7 @@ bool ReadFile_geno(const string &file_geno, const set &setSnps, if (indicator_idv[i] == 0) continue; + enforce_msg(ch_ptr,"Problem reading geno file"); if (strcmp(ch_ptr, "NA") == 0) { gsl_vector_set(genotype_miss, c_idv, 1); n_miss++; -- cgit v1.2.3