diff --git a/src/uifc/uifcd.c b/src/uifc/uifcd.c index 3a60f04a20cf0429551d54fe073952fd69b4d082..c0ee5e02c3ce1da1c58bcf4eff5c3b3710b3e2ce 100644 --- a/src/uifc/uifcd.c +++ b/src/uifc/uifcd.c @@ -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);