Commit 912c8ca5 authored by Sjoerd Simons's avatar Sjoerd Simons Committed by Youness Alaoui
Browse files

Only copy the valid data from the generated non-null terminated username buffer

parent 405cf343
......@@ -367,8 +367,7 @@ void priv_generate_candidate_credentials (NiceAgent *agent,
nice_rng_generate_bytes_print (agent->rng, 16, (gchar *)username);
candidate->username = g_strdup (username);
candidate->username = g_strndup (username, 16);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment