aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/rtsp_client.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rtsp_client.c b/src/rtsp_client.c
index 0280581f7..a2bc19cdb 100644
--- a/src/rtsp_client.c
+++ b/src/rtsp_client.c
@@ -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) {