On Thu, 20 Sep 2001, Logu wrote:
> int main(void){
> char *pass="logu";
> char *s;
> int i;
> scanf("%s",s);
^^^^^^^^^^^
you are corrupting memory here, since no space has been allocated. Its
luckky that you did get a core dump, otherwise these are very difficult
bugs to track down in large programs. The libefence library come's in
handy in this sitation. It makes sure that it seg-faults.
So you can link yours with
cc <something> -l efence
-- sreangsu
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help