Commit 9592c0b4 authored by Max Kellermann's avatar Max Kellermann

rtsp_client: increment "dp" after terminating the string

This fixes a bug that caused all values to be an empty string.
parent a33537b2
......@@ -458,10 +458,11 @@ exec_request(struct rtspcl_data *rtspcld, const char *cmd,
"request failed, bad header");
return false;
}
*dp = 0;
*dp++ = 0;
new_kd = g_new(struct key_data, 1);
new_kd->key = g_strdup(line);
dsize = strlen(dp + 1) + 1;
dsize = strlen(dp) + 1;
new_kd->data = g_strdup(dp);
new_kd->next = NULL;
if (cur_kd == NULL) {
......
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