rtsp_client: increment "dp" after terminating the string
This fixes a bug that caused all values to be an empty string.
This commit is contained in:
parent
a33537b2b9
commit
9592c0b466
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue