Ignore:
Timestamp:
Sep 1, 2014 6:32:50 AM (10 years ago)
Author:
riza
Message:

Misc (re #1751): fixed printing value issue when using %02X format. (Thanks Itay Bianco for the report).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/ssl_sock_dump.c

    r3553 r4910  
    6464    for (i = 0; i < sizeof(ci->serial_no) && !ci->serial_no[i]; ++i); 
    6565    for (; i < sizeof(ci->serial_no); ++i) { 
    66         len = pj_ansi_snprintf(p, end-p, "%02X ", ci->serial_no[i]); 
     66        len = pj_ansi_snprintf(p, end-p, "%02X ", ci->serial_no[i] & 0xFF); 
    6767        CHECK_BUF_LEN(); 
    6868    } 
Note: See TracChangeset for help on using the changeset viewer.