(trunk) #3663 "clang warnings in 2.11" -- fixed.

This commit is contained in:
Charles Kerr
2010-10-24 05:52:38 +00:00
parent 01ab067e9c
commit 5725b7c922
5 changed files with 10 additions and 20 deletions

View File

@@ -430,9 +430,9 @@ tr_strip_positional_args( const char* str )
const size_t len = strlen( str );
char * out;
if( bufsize < len )
if( !buf || ( bufsize < len ) )
{
bufsize = len * 2;
bufsize = len * 2 + 1;
buf = tr_renew( char, buf, bufsize );
}