[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: udhcpc6 expects string for bootfile-param opt(60)
From:       Xabier Oneca  --  xOneca <xoneca () gmail ! com>
Date:       2022-01-31 19:09:47
Message-ID: CACkgH73W4zwTDAghU+AZb9d0k_mLqRg5uW=xhYpPu-XRRmV4JA () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Geoff,

> [...]
> + if (envptr > envval)
> +    *envptr++ = ' ';
> + snprintf(envptr, parm_len + 1, optptr);

You forgot the format string (i.e. "%s").

> + envptr += parm_len;
> + optptr += parm_len;
> [...]

Cheers,

Xabier Oneca_,,_

[Attachment #5 (text/html)]

<div dir="ltr"><div><div><div dir="ltr">Hi Geoff,<br><br>&gt; [...]<br>&gt; +			if \
(envptr &gt; envval)<br>&gt; +			      *envptr++ = &#39; &#39;;<br>&gt; \
+			snprintf(envptr, parm_len + 1, optptr);<br><br>You forgot the format string (i.e. \
&quot;%s&quot;).<br><br>&gt; +			envptr += parm_len;<br>&gt; +			optptr += \
parm_len;<br></div>&gt; [...]<br><br></div>Cheers,<br><br></div>Xabier \
Oneca_,,_<br></div>



_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic