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:
Max Kellermann 2011-08-30 21:32:40 +02:00
parent a33537b2b9
commit 9592c0b466
1 changed files with 3 additions and 2 deletions

View File

@ -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) {