mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
sal.c: invalid use of size_t in remove_trailing_spaces
This commit is contained in:
parent
d595bdd2bc
commit
aa719921dd
1 changed files with 2 additions and 2 deletions
|
|
@ -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;i<SAL_MEDIA_DESCRIPTION_MAX_STREAMS;++i){
|
||||
const SalStreamDescription *ss=&md->streams[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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue