pj_strcat problems...

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

 



Hello all,

It is probably just me being stupid - I am fairly new to C and pjsip so 
go easy on me - but I'm having some problems with the pj_strcat 
function. The following file just segfaults, can anyone tell me why?:

#include <pjsua.h>
int main(int argc, char *argv[])
{
         const pj_str_t sip_user = pj_str(argv[1]);
         pj_str_t tmp = {"sip:",4};

         pj_strcat(&tmp, &sip_user);

         printf("STRING: %s ***", tmp);
     return 0;
}

BR

Steven




[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