Browse code

xcap_server: fix len for 'uri' comparison

- patch by Klaus Darilion

Daniel-Constantin Mierla authored on 05/01/2011 12:15:32
Showing 1 changed files
... ...
@@ -683,7 +683,7 @@ int pv_parse_xcap_uri_name(pv_spec_p sp, str *in)
683 683
 			pxs->key.len, pxs->key.s);
684 684
 	if(pxs->key.len==4 && strncmp(pxs->key.s, "data", 4)==0) {
685 685
 		pxs->ktype = 0;
686
-	} else if(pxs->key.len==3 && strncmp(pxs->key.s, "uri", 4)==0) {
686
+	} else if(pxs->key.len==3 && strncmp(pxs->key.s, "uri", 3)==0) {
687 687
 		pxs->ktype = 1;
688 688
 	} else if(pxs->key.len==4 && strncmp(pxs->key.s, "root", 4)==0) {
689 689
 		pxs->ktype = 2;