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

This commit is contained in:
Charles Kerr 2009-12-11 20:26:40 +00:00
parent 0e45a08930
commit 1f320b2ddd
2 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ bootstrap_from_name( const char *name, short int port, int af )
hints.ai_socktype = SOCK_DGRAM;
hints.ai_family = af;
/* No, just passing p + 1 to gai won't work. */
snprintf(pp, 10, "%d", port);
tr_snprintf(pp, sizeof(pp), "%d", port);
rc = getaddrinfo(name, pp, &hints, &info);
if(rc != 0) {

View File

@ -674,7 +674,7 @@ TrMainWindow :: openHelp( )
int major, minor;
sscanf( SHORT_VERSION_STRING, "%d.%d", &major, &minor );
char url[128];
snprintf( url, sizeof( url ), fmt, major, minor/10 );
tr_snprintf( url, sizeof( url ), fmt, major, minor/10 );
QDesktopServices :: openUrl( QUrl( QString( url ) ) );
}