Hi all,

attached is a patch to replace atoi() calls with appropriate str2*()
calls in 'lib/ipmi_lanp.c'. 'ival' parameter to lan_set_arp_interval()
got changed and that's about it.
Perhaps the following is worth of the thought:
~~~
-               interval = ((uint8_t)atoi((const char *)ival) * 2) - 1;
+               if ((UINT8_MAX / 2) < ival) {
~~~

Thanks,
Z.

Attachment: ipmi_lanp.c-atoi_removal.diff
Description: Binary data

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Ipmitool-devel mailing list
Ipmitool-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel

Reply via email to