Files
acrn-hypervisor/devicemodel/hw/pci/virtio
Gao Junhao e6e0e27788 dm: refine the check of return value of snprintf
int snprintf(char *str, size_t size, const char *format, ...)
The functions snprintf() write at most size bytes (including the
terminating null byte('\0')) to str.
only when returned value of snprintf is non-negative and less than size,
the string has been completely written.

Tracked-On: #3789
Signed-off-by: Junhao Gao <junhao.gao@intel.com>
Reviewed-by: Yonghua Huang <yonghua.huang@intel.com>
Acked-by: Yu Wang <yu1.wang@intel.com>
2019-10-15 13:53:58 +08:00
..
2019-02-28 18:33:11 +08:00
2019-06-20 22:25:11 +08:00
2019-06-24 18:51:44 +08:00
2019-06-22 21:42:32 +08:00