Skip to content
Snippets Groups Projects
Commit d18a0b06 authored by rswindell's avatar rswindell
Browse files

Help index line number is read as a short.

parent a6dafeaf
No related branches found
No related tags found
No related merge requests found
......@@ -355,7 +355,7 @@ void help()
{
char hbuf[HELPBUF_SIZE],str[256];
char *p;
uint i,j,k,len;
ushort line;
long l;
FILE *fp;
......@@ -377,8 +377,8 @@ void help()
if(!fread(str,12,1,fp))
break;
str[12]=0;
fread(&k,2,1,fp);
if(stricmp(str,p) || k!=helpline) {
fread(&line,2,1,fp);
if(stricmp(str,p) || line!=helpline) {
fseek(fp,4,SEEK_CUR);
continue; }
fread(&l,4,1,fp);
......@@ -394,7 +394,11 @@ void help()
else {
fseek(fp,l,SEEK_SET);
fread(hbuf,HELPBUF_SIZE,1,fp);
fclose(fp); } } } }
fclose(fp);
}
}
}
}
else
strcpy(hbuf,api->helpbuf);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment