From 716482bd85ffa28c5643e4fe924447c179055fe9 Mon Sep 17 00:00:00 2001 From: Eric Petit Date: Sat, 18 Nov 2006 06:01:50 +0000 Subject: [PATCH] Make sure strcatUTF8 leaves the string null terminated (spotted by Adam Bozanich) --- libtransmission/metainfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/metainfo.c b/libtransmission/metainfo.c index 25d91c3ed..801a4a774 100644 --- a/libtransmission/metainfo.c +++ b/libtransmission/metainfo.c @@ -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 * ); /***********************************************************************