Problem with pj_ansi_snprintf

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

 



Samuel Vinson wrote:
> Hi,
> 
> On windows, when I use (len = 0, the case of empty pj_str)
>     printf("%.*s%s<%s:>\n",len,(char *)NULL,  (len?" " : ""), "sip");
> I obtain and it's correct:
>     <sip:>
> 
> when I use
>     pj_ansi_snprintf(ptr, 40, "%.*s%s<%s:>", len, (char *)NULL,  (len?" 
> " : ""),"sip");
>     printf("%s", ptr);
> I obtain and it's correct:
>     <sip:>
> 
> On nintendo DS, when
> I use the same statement, I obtain :
>     - printf -> (null)<sip:>
>     - pj_ansi_snprintf -> (null)<sip:>
> 
> Where do you think is the problem ?
>     - libc ?
>     - gcc ?


It's libc problem (maybe it's using uC-libc or newlib?)

> Because this problem I must define force_client field :-(

What if you specify a display name in account id, like:

   acc.id = pj_str("Name <sip:name at host>");

  -benny

> Thanks
> 
> Samuel







[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux