[PATCH] ARM: plat-samsung: using vsnprintf instead of vsprintf for the limit buffer length 256

Chen Gang gang.chen at asianux.com
Mon Jan 21 20:00:03 EST 2013


于 2013年01月21日 21:56, Ben Dooks 写道:
> How about: vsnprintf(buff, sizeof(buff), fmt, va);
> 
> It means we do not end up assuming the size of 'buff' and will be correct
> if the code is changed to declare 'buff' to be a different size.

  thank you, I will send patch v2.

  :-)

-- 
Chen Gang

Asianux Corporation



More information about the linux-arm-kernel mailing list