concatenate problem

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

 



Michal

Maybe you need to allocate output ;-)

Samuel

Micha? a ?crit :
> Hi,
>
> I wanted concatenate: "sip:"user"@"domain,where domain is char * passed to the function but my program exits on the first pj_strcat2. I can't find why.
> this is part of my function: 
>
> SinReg(char *sipserv)
> {
> ....
> pj_str_t output = pj_str("");
> pj_strcat2(&output,"sip:"); //here program exits
> pj_strcat2(&output,"user");
> pj_strcat2(&output,"@");
> pj_strcat(&output,&pj_str(sipserv));
>
> ...
> }
>
> Thanks for any help
> Michael
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>
>   




[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