1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-03 13:03:50 +00:00

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

This commit is contained in:
Eric Petit 2006-11-18 06:01:50 +00:00
parent 24060a66d9
commit 716482bd85

View file

@ -29,7 +29,7 @@
/***********************************************************************
* Local prototypes
**********************************************************************/
#define strcatUTF8( dst, src) _strcatUTF8( (dst), sizeof( dst ), (src) )
#define strcatUTF8( dst, src) _strcatUTF8( (dst), sizeof( dst ) - 1, (src) )
static void _strcatUTF8( char *, int, char * );
/***********************************************************************