Skip to content
Commit c6f2f2cf authored by Robert Lubos's avatar Robert Lubos Committed by Carles Cufí
Browse files

tests: net: ip-addr: Fix compiler warning



Building with Zephyr SDK 0.16.5 revealed a minor bug with the buffer
size provided to snprintk():
  specified bound 38 exceeds destination size 20 [-Wstringop-overflow=]

As we provide the buffer to snprintk() with an offset, the actual
buffer size should be reduced by that offset value.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent 32fd2f57
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment