X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fxvasprintf.c;h=bd683627ef410d0b02a099043b238018e6b8949a;hb=fb7fde6f658ac18b7ab7ca61dca9a290cc8c3348;hp=30cea9364e07571c4fcf3b07cfcf51b4014c43fd;hpb=bac726e11dba0e61427e84b0d34fd6fb3290a5c6;p=gnulib.git diff --git a/lib/xvasprintf.c b/lib/xvasprintf.c index 30cea9364..bd683627e 100644 --- a/lib/xvasprintf.c +++ b/lib/xvasprintf.c @@ -1,5 +1,5 @@ /* vasprintf and asprintf with out-of-memory checking. - Copyright (C) 1999, 2002-2004, 2006 Free Software Foundation, Inc. + Copyright (C) 1999, 2002-2004, 2006, 2007 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,8 +23,8 @@ #include #include #include +#include -#include "vasprintf.h" #include "xalloc.h" /* Checked size_t computations. */ @@ -64,7 +64,7 @@ xstrcat (size_t argcount, va_list args) } /* Allocate and fill the result string. */ - result = (char *) xmalloc (totalsize + 1); + result = XNMALLOC (totalsize + 1, char); p = result; for (i = argcount; i > 0; i--) {