udhcpd host name issue

Mahavir Jain mahavir.coep at gmail.com
Mon Apr 20 06:24:14 UTC 2009


Hi , Denys

On Tue, Apr 14, 2009 at 6:31 AM, Denys Vlasenko
<vda.linux at googlemail.com> wrote:
> On Thursday 02 April 2009 16:26, Mahavir Jain wrote:
>> Hi, i am GIT user so svn took time,
>>
>> svn co http://busybox.net/svn/branches/busybox_1_13_stable/
>>
>> But i could see changes already there. Is patch being merged ..?
>

> Yes.
>
>> Also busybox reports wrong url for svn checkout , needs to be updated.

>
> This one?
>
> "The current stable branch can be obtained with
>
> svn co svn://busybox.net/branches/busybox_1_12_stable"
>
> I fixed it, thanks
> --
> vda
>

In   networking/udhcp/leases.c

-  hostname = (uint8_t*) safe_strncpy((char*)oldest->hostname,
(char*)hostname, hostname_length );
+  hostname = (uint8_t*) safe_strncpy((char*)oldest->hostname,
(char*)hostname, hostname_length + 1);

As safe_strncpy makes string to truncate last character to null, it
makes host name not to display last character.


Thanks
max


More information about the busybox mailing list