Menu

#3 Bug in size of "switches" array in xtermset.c

open
nobody
None
5
2014-01-25
2013-12-05
Jared Wong
No

line 34:
int main(int argc, char argv[])
{
int i,style,code,switches[2];
char fn[2][MAXFNCHARS-1],c,
tok;
char line[MAXOPTCHARS+10]; / ? /
FILE rcfile=NULL;
argument
argptr = NULL;

for(i=0;i<3;i++) {
   switches[i]=0;
   fn[i][0]='\0';
}

...

switches array is of length 2, but should be of length 3.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.