Skip to content

Commit

Permalink
backport fix for bugs 2872, 2966. (from 2.0 branch commit 25605697981c).
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed Oct 6, 2018
1 parent 71b515e commit 5d6fc28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timidity/timidity.c
Expand Up @@ -56,7 +56,7 @@ static int read_config_file(const char *name)
line++;
w[words=0]=strtok(tmp, " \t\r\n\240");
if (!w[0] || (*w[0]=='#')) continue;
while (w[words] && (words < MAXWORDS))
while (w[words] && (words < (MAXWORDS-1)))
{
w[++words]=strtok(0," \t\r\n\240");
if (w[words] && w[words][0]=='#') break;
Expand Down

0 comments on commit 5d6fc28

Please sign in to comment.