~ubuntu-branches/ubuntu/wily/rtmpdump/wily-proposed

« back to all changes in this revision

Viewing changes to librtmp/parseurl.c

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2014-04-11 22:08:17 UTC
  • mfrom: (6.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20140411220817-gef1vkyrygbyd87i
Tags: 2.4+20131018.git79459a2-2
Depends on libgmp-dev and nettle-dev to librtmpdev (Closes: #744242)

Show diffs side-by-side

added added

removed removed

Lines of Context:
137
137
         * application = app[/appinstance]
138
138
         */
139
139
 
140
 
        char *slash2, *slash3 = NULL;
 
140
        char *slash2, *slash3 = NULL, *slash4 = NULL;
141
141
        int applen, appnamelen;
142
142
 
143
143
        slash2 = strchr(p, '/');
144
144
        if(slash2)
145
145
                slash3 = strchr(slash2+1, '/');
 
146
        if(slash3)
 
147
                slash4 = strchr(slash3+1, '/');
146
148
 
147
149
        applen = end-p; /* ondemand, pass all parameters as app */
148
150
        appnamelen = applen; /* ondemand length */
156
158
                appnamelen = 8;
157
159
        }
158
160
        else { /* app!=ondemand, so app is app[/appinstance] */
159
 
                if(slash3)
 
161
                if(slash4)
 
162
                        appnamelen = slash4-p;
 
163
                else if(slash3)
160
164
                        appnamelen = slash3-p;
161
165
                else if(slash2)
162
166
                        appnamelen = slash2-p;