[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 3/4] pci-arbiter: Fix a -Wstringop-truncation warning

From: Joan Lledó
Subject: Re: [PATCH 3/4] pci-arbiter: Fix a -Wstringop-truncation warning
Date: Sat, 9 Nov 2019 10:35:30 +0100 (CET)


El 3/11/19 a les 17:47, Samuel Thibault ha escrit:
> The memset still seems spurious to me, isn't it?

Yes, I wrote it to ensure a '\0' was written at the end of the
string, no matter its size. But if snprintf() already null
terminates, then there's no need for the memset().

reply via email to

[Prev in Thread] Current Thread [Next in Thread]