On Sun, 24 Nov 2002, paridhi bansal wrote: > Hi > > Thanx everybody for helping me....neways, new problem > has popped up..i am calling a function(in rule.c) from > main(in main.c). The function is doing whatever > reqd.,before returning. But it just stops there. I am > not sure whether the return stmt is being executed or > not. Howevr, any printf stmts after return r not > executed. So i am guessing that the fn is returning to > main. But the next statement in main after the fn call > is not being executed. > > What can be the problem??? probably a buffer overflow in the function which you have called ,check the array sizes so that you are not stuffing more data than requried into the local buffer.use strncpy() where every possible if you are using strcpy(). thanks vamsi > > regds, > Paridhi > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus – Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > -- > Kernelnewbies: Help each other learn about the Linux kernel. > Archive: http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ > -- -----BEGIN GEEK CODE BLOCK----- Version: 1.2 GCS d+ H- s g+++ !p !au a21 w-- v--- C++ U+++ P++ L+++ !3 N-- E- W M- !VMS po+++ t-- !5 !j R- G? !tv b++++ -----END GEEK CODE BLOCK----- -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/