Commit 6c4b8cce authored by Pekka Pessi's avatar Pekka Pessi

url.c: fixed mixed ptrdiff_t/size_t usage.

darcs-hash:20070125161702-65a35-8c28b1b92520e6c8ee3ac7e4cba833f8a7b038d3.gz
parent 1f9e445d
......@@ -1941,7 +1941,7 @@ void url_string_update(su_md5_t *md5, char const *s)
n += p;
/* Ignore password in hash */
colon = memchr(s, ':', n);
p = colon ? colon - s : n;
p = colon ? (size_t)(colon - s) : n;
canon_update(md5, s, p, SIP_USER_UNRESERVED);
s += n + 1; n = 0;
}
......@@ -1970,7 +1970,7 @@ void url_string_update(su_md5_t *md5, char const *s)
if (s[n] == '@') {
/* Ignore password in hash */
colon = type != url_unknown ? memchr(s, ':', n) : NULL;
p = colon ? colon - s : n;
p = colon ? (size_t)(colon - s) : n;
canon_update(md5, s, p, SIP_USER_UNRESERVED);
s += n + 1;
n = strcspn(s, "/;?#"); /* Until path, query or fragment */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment