From 820ada1c0fcea3632a65bf49048ded81eaedc2fb Mon Sep 17 00:00:00 2001 From: Jonathan Hanks <jonathan.hanks@ligo.org> Date: Tue, 10 Nov 2020 19:24:11 -0600 Subject: [PATCH] Work on how local_dc handles spaces while reading systab files. --- src/local_dc/local_dc_utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/local_dc/local_dc_utils.h b/src/local_dc/local_dc_utils.h index c6b81c76f..2ee27cd50 100644 --- a/src/local_dc/local_dc_utils.h +++ b/src/local_dc/local_dc_utils.h @@ -47,12 +47,12 @@ extract_models_from_table( FILE* f, char* dest, int size ) } cur = buffer; /* find the first space */ - while ( *cur && *cur != ' ' ) + while ( *cur && isspace( *cur ) ) { ++cur; } /* move passed the space if we can */ - if ( *cur == ' ' ) + while ( isspace( *cur ) ) { *cur = '\0'; ++cur; -- GitLab