Mail Archives: djgpp/1997/10/09/20:31:56
In article <343A14FF DOT 41F2 AT post DOT comstar DOT ru>, zager AT post DOT comstar DOT ru says...
>
>Dim Zegebart wrote:
>>
>> The line in malloc() is
>>
>> /* remove from linked list */
>> nextf[bucket] = op->ov_next;
>
>Guys !!! I found it !!! It was in two years old code ported from TC.
>The problem obvious :
>
>char *buf;
>int l;
>FILE *f;
>..
>l=filelength(fileno(f));
>buf=(char*)malloc(l+1);
>buf[l+1]=0; // !!!!!!!!!!!!!!!! Here is (was) my problem ( buf[l]; is
>correct )
>
>Thank's for all who help me to solve it !
>
Congratulations. The classic method of solving problems is to ask other
people to help, then find the answer yourself.
- Raw text -