P2P: Make sure parsed Device Name gets null terminated
authorJouni Malinen <jouni.malinen@atheros.com>
Tue, 7 Sep 2010 14:07:57 +0000 (17:07 +0300)
committerJouni Malinen <j@w1.fi>
Fri, 10 Sep 2010 17:30:26 +0000 (10:30 -0700)
commite2197af1b21ce74e9987134ef546bafd5a0e6d7a
tree308aeafaeac1ba276153fe8e357979ac5c088072
parentb73bf0a74b9638b7164e7d3a61891d7d39088d84
P2P: Make sure parsed Device Name gets null terminated

If the msg->device_name buffer is filled from two different sources,
the copy from the P2P Device Info attribute needs to make sure that
the values gets null terminated to match the length of the correct
string should the other place use another string (which is not really
allowed by the spec, but could happen).
src/p2p/p2p_parse.c