]> git.kaiwu.me - nginx.git/commitdiff
use ngx_strnstr()
authorIgor Sysoev <igor@sysoev.ru>
Mon, 1 Oct 2007 14:48:45 +0000 (14:48 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 1 Oct 2007 14:48:45 +0000 (14:48 +0000)
src/http/modules/ngx_http_flv_module.c

index 04327d93821fd7a7cca1a2255f492e9f2552dae7..3de4ebfdd520a0f4d96982be54bd1512dcc90e29 100644 (file)
@@ -166,7 +166,7 @@ ngx_http_flv_handler(ngx_http_request_t *r)
     i = 1;
 
     if (r->args.len) {
-        p = (u_char *) ngx_strstr(r->args.data, "start=");
+        p = (u_char *) ngx_strnstr(r->args.data, "start=", r->args.len);
 
         if (p) {
             p += 6;