Module: sip-router
Branch: master
Commit: 9f2919ad77a16787f59a7f99c98597fb0176806c
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9f2919a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Wed Jan 5 13:15:32 2011 +0100
xcap_server: fix len for 'uri' comparison
- patch by Klaus Darilion
---
modules_k/xcap_server/xcap_misc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules_k/xcap_server/xcap_misc.c b/modules_k/xcap_server/xcap_misc.c
index 16a403d..58b40fd 100644
--- a/modules_k/xcap_server/xcap_misc.c
+++ b/modules_k/xcap_server/xcap_misc.c
@@ -683,7 +683,7 @@ int pv_parse_xcap_uri_name(pv_spec_p sp, str *in)
pxs->key.len, pxs->key.s);
if(pxs->key.len==4 && strncmp(pxs->key.s, "data", 4)==0) {
pxs->ktype = 0;
- } else if(pxs->key.len==3 && strncmp(pxs->key.s, "uri", 4)==0)
{
+ } else if(pxs->key.len==3 && strncmp(pxs->key.s, "uri", 3)==0)
{
pxs->ktype = 1;
} else if(pxs->key.len==4 && strncmp(pxs->key.s, "root", 4)==0)
{
pxs->ktype = 2;