[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) |
Hi,
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().
- Re: [PATCH] pci-arbiter: Remove embedded pciaccess code, Joan Lledó, 2019/11/03
- Re: [PATCH] pci-arbiter: Remove embedded pciaccess code, Joan Lledó, 2019/11/03
- [PATCH 2/4] pci-arbiter: Call libpciaccess cleanup on shutdown, Joan Lledó, 2019/11/03
- [PATCH 4/4] pci-arbiter: Fix warning on passing incompatible pointer type, Joan Lledó, 2019/11/03
- [PATCH 3/4] pci-arbiter: Fix a -Wstringop-truncation warning, Joan Lledó, 2019/11/03
- Re: [PATCH 3/4] pci-arbiter: Fix a -Wstringop-truncation warning, Samuel Thibault, 2019/11/03
- Re: [PATCH 3/4] pci-arbiter: Fix a -Wstringop-truncation warning, James Clarke, 2019/11/03
- Re: [PATCH 3/4] pci-arbiter: Fix a -Wstringop-truncation warning, Samuel Thibault, 2019/11/03
- Re: [PATCH 3/4] pci-arbiter: Fix a -Wstringop-truncation warning,
Joan Lledó <=
- [PATCH] pci-arbiter: Remove spurious memset(), Joan Lledó, 2019/11/09
- Re: [PATCH] pci-arbiter: Remove spurious memset(), Samuel Thibault, 2019/11/09
[PATCH 1/4] pci-arbiter: Remove embedded pciaccess code, Joan Lledó, 2019/11/03
Re: [PATCH] pci-arbiter: Remove embedded pciaccess code, Samuel Thibault, 2019/11/03