Changeset 1737


Ignore:
Timestamp:
Jan 24, 2008 3:18:42 PM (17 years ago)
Author:
bennylp
Message:

More ticket #61: crashed on SRTP error string lookup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/errno.c

    r1735 r1737  
    201201        statcode <  PJMEDIA_LIBSRTP_ERRNO_END) 
    202202    { 
    203         int err = statcode - PJMEDIA_PORTAUDIO_ERRNO_START; 
     203        int err = statcode - PJMEDIA_LIBSRTP_ERRNO_START; 
    204204        pj_str_t msg; 
    205205         
    206206        msg = pj_str((char*)get_libsrtp_errstr(err)); 
    207207 
     208        errstr.ptr = buf; 
    208209        pj_strncpy_with_null(&errstr, &msg, bufsize); 
    209210        return errstr; 
Note: See TracChangeset for help on using the changeset viewer.