Changeset 1101 for trunk/libtransmission


Ignore:
Timestamp:
Nov 18, 2006, 6:01:50 AM (15 years ago)
Author:
titer
Message:

Make sure strcatUTF8 leaves the string null terminated (spotted by Adam Bozanich)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/metainfo.c

    r997 r1101  
    3030 * Local prototypes
    3131 **********************************************************************/
    32 #define strcatUTF8( dst, src) _strcatUTF8( (dst), sizeof( dst ), (src) )
     32#define strcatUTF8( dst, src) _strcatUTF8( (dst), sizeof( dst ) - 1, (src) )
    3333static void _strcatUTF8( char *, int, char * );
    3434
Note: See TracChangeset for help on using the changeset viewer.