1 --- misc/liblangtag-0.4.0/liblangtag/lt-utils.c 2012-12-01 10:46:26.000000000 +0100
2 +++ misc/build/liblangtag-0.4.0/liblangtag/lt-utils.c 2012-12-01 13:17:41.421568551 +0100
8 #include "lt-messages.h"
11 @@ -121,7 +121,7 @@ char *
12 lt_strdup_vprintf(const char *format,
16 + char *retval, tmpbuf[ 16384 ];
20 @@ -133,7 +133,9 @@ lt_strdup_vprintf(const char *format,
24 - size = vsnprintf(&c, 1, format, ap) + 1;
25 + size = vsnprintf(tmpbuf, sizeof(tmpbuf), format, ap) + 1;
26 + if( size == 0 ) // -1 + 1