From aa719921ddd2aa6a5c9c5244b7c655126eb6c6c5 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Wed, 9 Dec 2015 11:06:50 +0100 Subject: [PATCH] sal.c: invalid use of size_t in remove_trailing_spaces --- coreapi/sal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coreapi/sal.c b/coreapi/sal.c index 32466c9a7..40c8347b5 100644 --- a/coreapi/sal.c +++ b/coreapi/sal.c @@ -167,7 +167,7 @@ static bool_t is_null_address(const char *addr){ /*check for the presence of at least one stream with requested direction */ static bool_t has_dir(const SalMediaDescription *md, SalStreamDir stream_dir){ int i; - + /* we are looking for at least one stream with requested direction, inactive streams are ignored*/ for(i=0;istreams[i]; @@ -813,7 +813,7 @@ const char* sal_privacy_to_string(SalPrivacy privacy) { } static void remove_trailing_spaces(char *line){ - size_t i; + int i; for(i=strlen(line)-1;i>=0;--i){ if (isspace(line[i])) line[i]='\0'; else break;