diff options
Diffstat (limited to 'nuttx/lib/lib_sprintf.c')
-rw-r--r-- | nuttx/lib/lib_sprintf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/lib/lib_sprintf.c b/nuttx/lib/lib_sprintf.c index 0a5496b88..f5efe3235 100644 --- a/nuttx/lib/lib_sprintf.c +++ b/nuttx/lib/lib_sprintf.c @@ -1,7 +1,7 @@ /**************************************************************************** * lib/lib_sprintf.c * - * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved. + * Copyright (C) 2007-2009 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -78,18 +78,18 @@ int sprintf (FAR char *buf, const char *fmt, ...) { - struct lib_memstream_s memstream; + struct lib_memoutstream_s memoutstream; va_list ap; int n; /* Initialize a memory stream to write to the buffer */ - lib_memstream((FAR struct lib_memstream_s *)&memstream, buf, LIB_BUFLEN_UNKNOWN); + lib_memoutstream((FAR struct lib_memoutstream_s *)&memoutstream, buf, LIB_BUFLEN_UNKNOWN); /* Then let lib_vsprintf do the real work */ va_start(ap, fmt); - n = lib_vsprintf((FAR struct lib_stream_s *)&memstream.public, fmt, ap); + n = lib_vsprintf((FAR struct lib_outstream_s *)&memoutstream.public, fmt, ap); va_end(ap); return n; } |