Merge remote-tracking branch 'kurogane/master'

This commit is contained in:
Bill Currie 2011-11-15 18:06:44 +09:00
commit 7f551026f5

View file

@ -70,14 +70,13 @@ VISIBLE char *
nva (const char *fmt, ...)
{
va_list args;
static dstring_t *string;
dstring_t *string;
if (!string)
string = dstring_new ();
va_start (args, fmt);
dvsprintf (string, fmt, args);
va_end (args);
return strdup (string->str);
return dstring_freeze (string);
}