Skip to content

Commit

Permalink
Fixes mod-audio#80.
Browse files Browse the repository at this point in the history
Allow any quantity of spaces in protocol word separators.
  • Loading branch information
riban-bw committed Jul 7, 2024
1 parent b6dc4e0 commit 5600659
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ char** strarr_split(char *str)
if (*pstr == token && quote == 0)
{
count++;
while (*(pstr + 1) && (*(pstr + 1) == token))
pstr++;
}
#ifdef ENABLE_QUOTATION_MARKS
else if (*pstr == '\\' && *(pstr+1) == '"')
Expand Down Expand Up @@ -174,6 +176,8 @@ char** strarr_split(char *str)
{
*pstr = '\0';
list[++count] = pstr + 1;
while (*(pstr + 1) && (*(pstr + 1) == token))
pstr++;
}
#ifdef ENABLE_QUOTATION_MARKS
else if (*pstr == '\\' && *(pstr+1) == '"')
Expand Down

0 comments on commit 5600659

Please sign in to comment.