diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-09 18:17:44 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-05-09 18:17:44 +0200 |
commit | 4384f0b14a658b4179cedf77c2d6c2718610017b (patch) | |
tree | 2fbe7d0e985226f25c82819e089863c40e05f51e /src/input | |
parent | 3aeb7a2cc052a7bef5d8781f81d1835db7c5af63 (diff) | |
download | xine-lib-4384f0b14a658b4179cedf77c2d6c2718610017b.tar.gz xine-lib-4384f0b14a658b4179cedf77c2d6c2718610017b.tar.bz2 |
Use size_t rather than int to store the return value of strlen().
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/libreal/sdpplin.c | 2 | ||||
-rw-r--r-- | src/input/librtsp/rtsp.c | 2 | ||||
-rw-r--r-- | src/input/pnm.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/input/libreal/sdpplin.c b/src/input/libreal/sdpplin.c index 2596391f9..4c1687d41 100644 --- a/src/input/libreal/sdpplin.c +++ b/src/input/libreal/sdpplin.c @@ -99,7 +99,7 @@ static char *nl(char *data) { static int filter(const char *in, const char *filter, char **out) { - int flen=strlen(filter); + size_t flen=strlen(filter); size_t len; if (!in) diff --git a/src/input/librtsp/rtsp.c b/src/input/librtsp/rtsp.c index 4e17c1e57..07769064a 100644 --- a/src/input/librtsp/rtsp.c +++ b/src/input/librtsp/rtsp.c @@ -127,7 +127,7 @@ static char *rtsp_get(rtsp_t *s) { static void rtsp_put(rtsp_t *s, const char *string) { - int len=strlen(string); + size_t len=strlen(string); char *buf = malloc(sizeof(char)*len+2); lprintf(">> '%s'", string); diff --git a/src/input/pnm.c b/src/input/pnm.c index 5b8aa7c42..cbd245e7b 100644 --- a/src/input/pnm.c +++ b/src/input/pnm.c @@ -415,8 +415,8 @@ static void pnm_send_request(pnm_t *p, uint32_t bandwidth) { */ static void pnm_send_response(pnm_t *p, const char *response) { - - int size=strlen(response); + /** @TODO should check that sze is always < 256 */ + size_t size=strlen(response); p->buffer[0]=0x23; p->buffer[1]=0; |