summaryrefslogtreecommitdiff
path: root/src/console/vsprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/console/vsprintf.c')
-rw-r--r--src/console/vsprintf.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/console/vsprintf.c b/src/console/vsprintf.c
index b1b6d475be..1fb834f382 100644
--- a/src/console/vsprintf.c
+++ b/src/console/vsprintf.c
@@ -57,20 +57,6 @@ static int vsnprintf(char *buf, size_t size, const char *fmt, va_list args)
return i;
}
-int sprintf(char *buf, const char *fmt, ...)
-{
- va_list args;
- int i;
-
- va_start(args, fmt);
- /* A trick: we have at most (size_t)-1 adressable space anyway, so
- if we output so much we'll crash anyway. */
- i = vsnprintf(buf, -1, fmt, args);
- va_end(args);
-
- return i;
-}
-
int snprintf(char *buf, size_t size, const char *fmt, ...)
{
va_list args;