backport fix for bugs 2872, 2966. (from 2.0 branch commit 25605697981c). SDL-1.2
authorOzkan Sezer <sezeroz@gmail.com>
Sun, 07 Oct 2018 01:40:20 +0300
branchSDL-1.2
changeset 880281ee0037d92
parent 879 2af89c5af8b5
child 881 6bf9b92cfad9
backport fix for bugs 2872, 2966. (from 2.0 branch commit 25605697981c).
timidity/timidity.c
     1.1 --- a/timidity/timidity.c	Sun Oct 07 01:39:10 2018 +0300
     1.2 +++ b/timidity/timidity.c	Sun Oct 07 01:40:20 2018 +0300
     1.3 @@ -56,7 +56,7 @@
     1.4      line++;
     1.5      w[words=0]=strtok(tmp, " \t\r\n\240");
     1.6      if (!w[0] || (*w[0]=='#')) continue;
     1.7 -    while (w[words] && (words < MAXWORDS))
     1.8 +    while (w[words] && (words < (MAXWORDS-1)))
     1.9        {
    1.10          w[++words]=strtok(0," \t\r\n\240");
    1.11          if (w[words] && w[words][0]=='#') break;