summaryrefslogtreecommitdiff
path: root/src/input/pnm.c
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-05-09 18:17:44 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-05-09 18:17:44 +0200
commit4384f0b14a658b4179cedf77c2d6c2718610017b (patch)
tree2fbe7d0e985226f25c82819e089863c40e05f51e /src/input/pnm.c
parent3aeb7a2cc052a7bef5d8781f81d1835db7c5af63 (diff)
downloadxine-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/pnm.c')
-rw-r--r--src/input/pnm.c4
1 files changed, 2 insertions, 2 deletions
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;