Changeset 13847


Ignore:
Timestamp:
Jan 23, 2013, 4:28:37 AM (8 years ago)
Author:
jordan
Message:

(libT) replace errant snprintf() calls with tr_snprintf() calls

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/session.c

    r13826 r13847  
    298298    case 0x02: return "lowdelay";
    299299    default:
    300         snprintf (buf, 8, "%d", value);
     300        tr_snprintf (buf, 8, "%d", value);
    301301        return buf;
    302302    }
  • trunk/libtransmission/tr-lpd.c

    r13625 r13847  
    226226
    227227    /* compose the string token to search for */
    228     snprintf (sstr, maxLength, CRLF "%s: ", name);
     228    tr_snprintf (sstr, maxLength, CRLF "%s: ", name);
    229229
    230230    pos = strstr (str, sstr);
     
    455455
    456456    /* prepare a zero-terminated announce message */
    457     snprintf (query, lpd_maxDatagramLength + 1, fmt, 1, 1,
    458         lpd_mcastGroup, lpd_mcastPort, lpd_port, hashString);
     457    tr_snprintf (query, lpd_maxDatagramLength + 1, fmt, 1, 1,
     458                 lpd_mcastGroup, lpd_mcastPort, lpd_port, hashString);
    459459
    460460    /* actually send the query out using [lpd_socket2] */
Note: See TracChangeset for help on using the changeset viewer.