Skip to content
Snippets Groups Projects
Commit 820ada1c authored by Jonathan Hanks's avatar Jonathan Hanks
Browse files

Work on how local_dc handles spaces while reading systab files.

parent a6df28ed
No related branches found
No related tags found
1 merge request!182Update local_dc to allow reading the model list from a systab file.
...@@ -47,12 +47,12 @@ extract_models_from_table( FILE* f, char* dest, int size ) ...@@ -47,12 +47,12 @@ extract_models_from_table( FILE* f, char* dest, int size )
} }
cur = buffer; cur = buffer;
/* find the first space */ /* find the first space */
while ( *cur && *cur != ' ' ) while ( *cur && isspace( *cur ) )
{ {
++cur; ++cur;
} }
/* move passed the space if we can */ /* move passed the space if we can */
if ( *cur == ' ' ) while ( isspace( *cur ) )
{ {
*cur = '\0'; *cur = '\0';
++cur; ++cur;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment