From 27869f1c27421cd11d61a13224253b6f0dece22c Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 16 Oct 2018 09:50:24 +0200 Subject: cell_tool: Check --tolerance has the right number of commas --- src/cell_tool.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/cell_tool.c') diff --git a/src/cell_tool.c b/src/cell_tool.c index 3fd206e9..51e7ea01 100644 --- a/src/cell_tool.c +++ b/src/cell_tool.c @@ -509,6 +509,16 @@ int main(int argc, char *argv[]) free(cell_file); if ( toler != NULL ) { + int i; + int ncomma = 0; + size_t l = strlen(toler); + for ( i=0; i