[libvirt] [PATCH 3/7] openvz: pass sizeof to snprintf

Peter Krempa pkrempa at redhat.com
Tue Mar 6 14:21:46 UTC 2018


On Tue, Mar 06, 2018 at 15:01:35 +0100, Ján Tomko wrote:
> The size argument accounts for the nul-byte to terminate
> the string. Use sizeof and remove the pointless assignment.
> 
> Signed-off-by: Ján Tomko <jtomko at redhat.com>
> ---
>  src/openvz/openvz_driver.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)

ACK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20180306/43a2df6d/attachment-0001.sig>


More information about the libvir-list mailing list