summaryrefslogtreecommitdiff
path: root/strings/my_vsnprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'strings/my_vsnprintf.c')
-rw-r--r--strings/my_vsnprintf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/strings/my_vsnprintf.c b/strings/my_vsnprintf.c
index dbfd2783a80..34dee0f839f 100644
--- a/strings/my_vsnprintf.c
+++ b/strings/my_vsnprintf.c
@@ -35,6 +35,7 @@
int my_snprintf(char* to, size_t n, const char* fmt, ...)
{
+ int result;
va_list args;
int result;
va_start(args,fmt);
@@ -127,6 +128,7 @@ int my_vsnprintf(char *to, size_t n, const char* fmt, va_list ap)
return (uint) (to - start);
}
+
#ifdef MAIN
#define OVERRUN_SENTRY 250
static void my_printf(const char * fmt, ...)
@@ -147,6 +149,7 @@ static void my_printf(const char * fmt, ...)
va_end(ar);
}
+
int main()
{