Changeset 9719


Ignore:
Timestamp:
Dec 11, 2009, 8:26:40 PM (12 years ago)
Author:
charles
Message:

(trunk) fix a couple of cases where we don't use the tr_snprintf() portability wrapper

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tr-dht.c

    r9632 r9719  
    112112    hints.ai_family = af;
    113113    /* No, just passing p + 1 to gai won't work. */
    114     snprintf(pp, 10, "%d", port);
     114    tr_snprintf(pp, sizeof(pp), "%d", port);
    115115
    116116    rc = getaddrinfo(name, pp, &hints, &info);
  • trunk/qt/mainwin.cc

    r9671 r9719  
    675675    sscanf( SHORT_VERSION_STRING, "%d.%d", &major, &minor );
    676676    char url[128];
    677     snprintf( url, sizeof( url ), fmt, major, minor/10 );
     677    tr_snprintf( url, sizeof( url ), fmt, major, minor/10 );
    678678    QDesktopServices :: openUrl( QUrl( QString( url ) ) );
    679679}
Note: See TracChangeset for help on using the changeset viewer.