]> git.ipfire.org Git - thirdparty/hostap.git/commit
Check snprintf result to avoid compiler warnings
authorJouni Malinen <j@w1.fi>
Sun, 23 Dec 2018 22:44:36 +0000 (00:44 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 24 Dec 2018 09:09:22 +0000 (11:09 +0200)
commite422a819d0fded76085c8d12e7b978202d3ed76e
tree5a1bc237d78b167a55953af34215c94ea59e0bbc
parentee98dd631aa699759e77170f5a9bf07b28b00005
Check snprintf result to avoid compiler warnings

These do not really get truncated in practice, but it looks like some
newer compilers warn about the prints, so silence those by checking the
result and do something a bit more useful if the output would actually
get truncated.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/ap/eap_user_db.c
src/ap/vlan_init.c
src/drivers/driver_wext.c
wpa_supplicant/dbus/dbus_new_handlers_p2p.c
wpa_supplicant/dbus/dbus_new_handlers_wps.c
wpa_supplicant/dbus/dbus_old_handlers_wps.c