Mail Archives: djgpp/1997/02/06/08:38:11
Pyro Technic wrote:
> for(j=3; j>=0; ++j)
> {
> temp = (int)num1 % 10;
> digit[j]=temp;
> num1 /= 10;
> num1 -= (temp/10);
> }
Think about the value of j in this loop... 3, 4, 5, 6, 7, etc... you're
trashing all available memory after digit[3]... Sorry it's too late to
be any real help, but I just read it.
--J
p.s. The lesson here is that SIGSEV is commonly the result of trashing
memory in this fashion.
--
/*
Someday I'll come up with a real signature file, honest...
email to: jedyer AT somtel DOT com or jaydyer AT mint DOT net
*/
- Raw text -