linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] [patch] Bug in command line parser


From: Guillaume Beraudo
Subject: Re: [Linphone-developers] [patch] Bug in command line parser
Date: Mon, 14 Apr 2014 10:21:04 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

Hi Deti,

Thanks for spotting the error.


Guillaume

On Mon, Apr 14, 2014 at 12:38:52AM +0200, Deti Fliegl wrote:
> Length for argument '--real-early-media' in strncmp is wrong(2):
> 
> diff --git a/console/linphonec.c b/console/linphonec.c
> index f08c0f9..c3be32b 100644
> --- a/console/linphonec.c
> +++ b/console/linphonec.c
> @@ -1238,10 +1245,14 @@ linphonec_parse_cmdline(int argc, char **argv)
>                  {
>                          auto_answer = TRUE;
>                  }
> -                else if (strncmp ("--real-early-media", argv[arg_num],
> 2) == 0)
> +                else if (strncmp ("--real-early-media", argv[arg_num],
> strlen("--real-early-media")) == 0)
>                  {
>                          real_early_media_sending = TRUE;
>                  }
> 
> 
> _______________________________________________
> Linphone-developers mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/linphone-developers



reply via email to

[Prev in Thread] Current Thread [Next in Thread]