diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-06-20 01:46:41 +0000 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2006-06-20 01:46:41 +0000 |
commit | 1db8aa445fdab9168bf649225feef804761132b1 (patch) | |
tree | b466b9641d2083411567203cfc123198f26e7854 /src/input/http_helper.c | |
parent | f945ec50a244d3a7ecee47e6535aeb02afb17930 (diff) | |
download | xine-lib-1db8aa445fdab9168bf649225feef804761132b1.tar.gz xine-lib-1db8aa445fdab9168bf649225feef804761132b1.tar.bz2 |
Fix generic warnings.
CVS patchset: 8065
CVS date: 2006/06/20 01:46:41
Diffstat (limited to 'src/input/http_helper.c')
-rw-r--r-- | src/input/http_helper.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/input/http_helper.c b/src/input/http_helper.c index 6a44a2ad6..a725abc39 100644 --- a/src/input/http_helper.c +++ b/src/input/http_helper.c @@ -19,7 +19,7 @@ * * URL helper functions * - * $Id: http_helper.c,v 1.6 2006/03/18 09:15:00 tmattern Exp $ + * $Id: http_helper.c,v 1.7 2006/06/20 01:46:41 dgp85 Exp $ */ #ifdef HAVE_CONFIG_H @@ -196,7 +196,7 @@ error: char *_x_canonicalise_url (const char *base, const char *url) { - int base_length; + size_t base_length; char *cut, *ret; if ((cut = strstr (url, "://"))) @@ -213,9 +213,9 @@ char *_x_canonicalise_url (const char *base, const char *url) { if (cut) ++cut; } - base_length = cut ? cut - base : strlen (base); + base_length = cut ? (size_t)(cut - base) : strlen (base); ret = malloc (base_length + strlen (url) + 1); - sprintf (ret, "%.*s%s", base_length, base, url); + sprintf (ret, "%.*s%s", (int)base_length, base, url); return ret; } |