]> git.ipfire.org Git - thirdparty/hostap.git/commit
wpa_supplicant: events: Don't bounce timeout reason through a buffer
authorJohannes Berg <johannes.berg@intel.com>
Wed, 8 Mar 2017 20:41:17 +0000 (21:41 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 11 Mar 2017 08:52:43 +0000 (10:52 +0200)
commit15e5ee0b7559c9d7357a7c5b4f50f2f34b209ad1
tree819c7786b78c15984557b961bc27b782a61f74bc
parentbe607ceb556153da45fd27b3978c7bae1f1e6ef1
wpa_supplicant: events: Don't bounce timeout reason through a buffer

There's no point in making the code use a stack buffer and first copying
the string there, only to copy it again to the output. Make the output
directly use the reason string.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
wpa_supplicant/events.c