[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IP address in the kernel



That was actually part of the problem :-)
Everything is working peachy-keen now. Thanks to everyone for your help!

	-Jeremy

On Tuesday 06 August 2002 09:58 am, Christians, Daniel wrote:
> hi jeremy,
>
> i'm not sure if this will fix your problem, but the iname array is
> declared to hold only 4 chars and the strcpy will copy 5 chars into
> it, potentially overwriting something important.  the 5th char is the
> null byte.
>
>   > strcpy(iname, "eth0");
>
> peace,
>
> dan

-- 
----------------------------
Jeremy C. Andrus
http://www.jeremya.com/
----------------------------
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/