More references to avsprintf that need to be changed vasprintf

This commit is contained in:
Gregory Nutt 2015-09-07 17:09:11 -06:00
parent 5306a27335
commit 6b1d61c759
2 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
/****************************************************************************
* apps/n etutils/ftpd.c
*
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
* Copyright (C) 2012, 2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Includes original code as well as logic adapted from hwport_ftpd, written
@ -977,7 +977,7 @@ static ssize_t ftpd_response(int sd, int timeout, FAR const char *fmt, ...)
va_list ap;
va_start(ap, fmt);
avsprintf(&buffer, fmt, ap);
vasprintf(&buffer, fmt, ap);
va_end(ap);
if (!buffer)

View File

@ -1,7 +1,7 @@
/****************************************************************************
* apps/nshlib/nsh_console.c
*
* Copyright (C) 2007-2009, 2011-2013 Gregory Nutt. All rights reserved.
* Copyright (C) 2007-2009, 2011-2013, 2015 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
@ -240,13 +240,13 @@ static int nsh_consoleoutput(FAR struct nsh_vtbl_s *vtbl,
va_list ap;
char *str;
/* Use avsprintf() to allocate a buffer and fill it with the formatted
/* Use vasprintf() to allocate a buffer and fill it with the formatted
* data
*/
va_start(ap, fmt);
str = NULL;
(void)avsprintf(&str, fmt, ap);
(void)vasprintf(&str, fmt, ap);
/* Was a string allocated? */