Rev 3840 | Rev 7676 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3840 | Rev 6876 | ||
---|---|---|---|
Line 190... | Line 190... | ||
190 | } |
190 | } |
191 | else { |
191 | else { |
192 | p1=getenv("untrust"); if(p1 && strstr(p1,"yes")) escape(); |
192 | p1=getenv("untrust"); if(p1 && strstr(p1,"yes")) escape(); |
193 | } |
193 | } |
194 | } |
194 | } |
- | 195 | /* replace escape() by return if there is some suffix dictionary, */ |
|
- | 196 | ||
195 | dicf=fopen(fname,"r"); if(dicf==NULL) |
197 | dicf=fopen(fname,"r"); if(dicf==NULL) return; |
196 | fseek(dicf,0,SEEK_END);flen=ftell(dicf); fseek(dicf,0,SEEK_SET); |
198 | fseek(dicf,0,SEEK_END);flen=ftell(dicf); fseek(dicf,0,SEEK_SET); |
197 | if(flen>diclim) escape(); |
199 | if(flen>diclim) escape(); |
198 | dicbuf=xmalloc(flen+16);flen=fread(dicbuf,1,flen,dicf); |
200 | dicbuf=xmalloc(flen+16);flen=fread(dicbuf,1,flen,dicf); |
199 | fclose(dicf); |
201 | fclose(dicf); |
200 | if(flen>0 && flen<diclim) dicbuf[flen]=0; |
202 | if(flen>0 && flen<diclim) dicbuf[flen]=0; |
Line 321... | Line 323... | ||
321 | if(*p2==c) {printf("%c",c); p1=++p2;} |
323 | if(*p2==c) {printf("%c",c); p1=++p2;} |
322 | } |
324 | } |
323 | while(*p2); |
325 | while(*p2); |
324 | return 0; |
326 | return 0; |
325 | } |
327 | } |
326 | - |