Softap: Avoid possible array index out-of-bounds access.

Return value of snprintf can be more than size value when output
is truncated, so copying the '\0' at return value may cause array
index out-of-bound access. And as snprintf function takes care of
terminating the string with '\0', its redundant to copy '\0' at
return value.

CRs-Fixed: 947966
Change-Id: Ic5dab6d9aa57db5000f23c82e2a22924e0154c40
1 file changed
tree: 118cf27c73fbfdbaf56f41b61f70a95f71bfdb32
  1. softap/