diff --git a/src/util/src/tutil.c b/src/util/src/tutil.c index 7987d95dca4b5ac55db63fd78f52a62aa66d480c..1a73991ade1ea4617fc4d3dab3904652ff46d691 100644 --- a/src/util/src/tutil.c +++ b/src/util/src/tutil.c @@ -223,7 +223,7 @@ char *paGetToken(char *string, char **token, int32_t *tokenLen) { char quote = 0; while (*string != 0) { - if (isspace(*string)) { + if (*string == ' ' || *string == '\t') { ++string; } else { break; @@ -244,12 +244,12 @@ char *paGetToken(char *string, char **token, int32_t *tokenLen) { break; } - if (*string == '#' || isspace(*string)) { + if (*string == '#' || *string == '\n' || *string == '\r') { *string = 0; break; } - if (isspace(*string) && !quote) { + if ((*string == ' ' || *string == '\t') && !quote) { break; } else { ++string;