Hi.. > char str1[256]="to be passed in"; try to replace it with "char * str". Somehow, defining the variable as fixed length string makes something goes wrong... regards Mulyadi -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/