summaryrefslogtreecommitdiff
path: root/src/xine-engine/info_helper.c
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-05-09 21:54:58 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-05-09 21:54:58 +0200
commit16a41a85516f6055918887938e9dd3f3f9fbcf28 (patch)
treee027aabed1c7a3c0d22b35044a0d8433c826ff25 /src/xine-engine/info_helper.c
parent434cb7ca0ea80267700f84954f12733b0f34a968 (diff)
downloadxine-lib-16a41a85516f6055918887938e9dd3f3f9fbcf28.tar.gz
xine-lib-16a41a85516f6055918887938e9dd3f3f9fbcf28.tar.bz2
Use size_t to keep the value returned by strlen().
When using a variable to store the result of strlen(), make sure its type is size_t just like the function returns, rather than using a smaller type like int. --HG-- extra : transplant_source : %B0%D5%3B%D7%1Dy%0A%7E%7D%7C%023%08%B2%CE%D3t%0B3%D7
Diffstat (limited to 'src/xine-engine/info_helper.c')
-rw-r--r--src/xine-engine/info_helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xine-engine/info_helper.c b/src/xine-engine/info_helper.c
index e6d4df7e9..242805915 100644
--- a/src/xine-engine/info_helper.c
+++ b/src/xine-engine/info_helper.c
@@ -131,7 +131,7 @@ uint32_t _x_stream_info_get_public(xine_stream_t *stream, int info) {
* at the end of the string
*/
static void meta_info_chomp(char *str) {
- int i, len;
+ size_t i, len;
len = strlen(str);
if (!len)
@@ -358,7 +358,7 @@ void _x_meta_info_set_multi(xine_stream_t *stream, int info, ...) {
va_list ap;
char *args[1025];
char *buf;
- int n, len;
+ size_t n, len;
len = n = 0;