summaryrefslogtreecommitdiffstats
path: root/gst/rtsp
diff options
context:
space:
mode:
authorjp.liu <jp_liu@astrocom.cn>2007-02-14 10:09:12 +0000
committerWim Taymans <wim.taymans@gmail.com>2007-02-14 10:09:12 +0000
commita8f72c67d1ce4ed6256b59fd07f2ed1a08bf68fb (patch)
tree959d0a0e86311155f50d88410a9c994c62880ea7 /gst/rtsp
parent2644d7178b5f8b141d20d52fb845e269c1dfc4a3 (diff)
gst/rtsp/rtspurl.c: Fix parsing of password field in url. Fixes #407797.
Original commit message from CVS: Patch by: jp.liu <jp_liu at astrocom dot cn> * gst/rtsp/rtspurl.c: (rtsp_url_parse): Fix parsing of password field in url. Fixes #407797.
Diffstat (limited to 'gst/rtsp')
-rw-r--r--gst/rtsp/rtspurl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/rtsp/rtspurl.c b/gst/rtsp/rtspurl.c
index dd735565..6ef0220e 100644
--- a/gst/rtsp/rtspurl.c
+++ b/gst/rtsp/rtspurl.c
@@ -95,7 +95,7 @@ rtsp_url_parse (const gchar * urlstr, RTSPUrl ** url)
res->user = g_strndup (p, col - p);
col++;
- res->passwd = g_strndup (col, col - at);
+ res->passwd = g_strndup (col, at - col);
/* move to host */
p = at + 1;