Ignore:
Timestamp:
Jul 15, 2008, 5:16:57 PM (14 years ago)
Author:
charles
Message:

add a portability wrapper tr_snprintf() around snprintf()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/makemeta.c

    r5989 r6334  
    1313#include <assert.h>
    1414#include <errno.h>
    15 #include <stdio.h> /* FILE, snprintf, stderr */
     15#include <stdio.h> /* FILE, stderr */
    1616#include <stdlib.h> /* qsort */
    1717
     
    208208    if( !fp ) {
    209209        b->my_errno = errno;
    210         snprintf( b->errfile, sizeof( b->errfile ), b->files[fileIndex].filename );
     210        tr_snprintf( b->errfile, sizeof( b->errfile ), b->files[fileIndex].filename );
    211211        b->result = TR_MAKEMETA_IO_READ;
    212212        tr_free( ret );
     
    238238                    if( !fp ) {
    239239                        b->my_errno = errno;
    240                         snprintf( b->errfile, sizeof( b->errfile ), b->files[fileIndex].filename );
     240                        tr_snprintf( b->errfile, sizeof( b->errfile ), b->files[fileIndex].filename );
    241241                        b->result = TR_MAKEMETA_IO_READ;
    242242                        tr_free( ret );
     
    481481    else {
    482482        char out[MAX_PATH_LENGTH];
    483         snprintf( out, sizeof(out), "%s.torrent", builder->top);
     483        tr_snprintf( out, sizeof(out), "%s.torrent", builder->top);
    484484        builder->outputFile = tr_strdup( out );
    485485    }
Note: See TracChangeset for help on using the changeset viewer.