Index: uspace/lib/c/Makefile
===================================================================
--- uspace/lib/c/Makefile	(revision 296890f3fa17c85aea7be46fe09298847901f160)
+++ uspace/lib/c/Makefile	(revision a8b0c5d5c63e55b59011b6c35b752d43e88778f0)
@@ -132,6 +132,8 @@
 	generic/malloc.c \
 	generic/stdio/scanf.c \
+	generic/stdio/sprintf.c \
 	generic/stdio/sscanf.c \
 	generic/stdio/sstream.c \
+	generic/stdio/vsprintf.c \
 	generic/sysinfo.c \
 	generic/ipc.c \
Index: uspace/lib/c/generic/stdio/vsprintf.c
===================================================================
--- uspace/lib/c/generic/stdio/vsprintf.c	(revision 296890f3fa17c85aea7be46fe09298847901f160)
+++ uspace/lib/c/generic/stdio/vsprintf.c	(revision a8b0c5d5c63e55b59011b6c35b752d43e88778f0)
@@ -50,5 +50,5 @@
 int vsprintf(char *s, const char *fmt, va_list ap)
 {
-	return vsnprintf(s, SIZE_MAX, fmt, args);
+	return vsnprintf(s, SIZE_MAX, fmt, ap);
 }
 
