Commit 6a5ae86a authored by Philip Withnall's avatar Philip Withnall

agent: Fix documentation to use ‘nul-terminated’ for strings

NULL is ((gpointer) 0). nul is '\0'. Arrays can be NULL terminated.
Strings can be nul terminated.
parent 929f7cec
......@@ -563,9 +563,9 @@ nice_agent_gather_candidates (
* nice_agent_set_remote_credentials:
* @agent: The #NiceAgent Object
* @stream_id: The ID of the stream
* @ufrag: NULL-terminated string containing an ICE username fragment
* @ufrag: nul-terminated string containing an ICE username fragment
* (length must be between 22 and 256 chars)
* @pwd: NULL-terminated string containing an ICE password
* @pwd: nul-terminated string containing an ICE password
* (length must be between 4 and 256 chars)
*
* Sets the remote credentials for stream @stream_id.
......
......@@ -193,8 +193,8 @@ struct _NiceCandidate
guint stream_id;
guint component_id;
gchar foundation[NICE_CANDIDATE_MAX_FOUNDATION];
gchar *username; /* pointer to a NULL-terminated username string */
gchar *password; /* pointer to a NULL-terminated password string */
gchar *username; /* pointer to a nul-terminated username string */
gchar *password; /* pointer to a nul-terminated password string */
TurnServer *turn;
gpointer sockptr;
};
......
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