Revert back to using os_snprintf instead of sprintf.
Closes WIFI-624
if (tls_get_cipher(data->ssl_ctx, data->conn, name, sizeof(name)) == 0)
{
- //ret = os_snprintf(buf + len, buflen - len,
- ret = sprintf(buf + len,
+ ret = os_snprintf(buf + len, buflen - len,
"EAP TLS cipher=%s\n", name);
if (ret < 0 || (size_t) ret >= buflen - len)
return len;
buf[0] = '\0';
for (i = 0; i < oid->len; i++) {
- //ret = os_snprintf(pos, buf + len - pos,
- ret = sprintf(pos,
+ ret = os_snprintf(pos, buf + len - pos,
"%s%lu",
i == 0 ? "" : ".", oid->oid[i]);
if (ret < 0 || ret >= buf + len - pos)