File:  [DVB] / dietlibc / lib / vsprintf.c
Revision 1.7: download - view: text, annotated - select for diffs
Tue May 2 21:41:27 2017 UTC (7 years, 1 month ago) by leitner
Branches: MAIN
CVS tags: HEAD
remove most gcc 7 warnings

#include <stdarg.h>
#include <sys/types.h>
#include <stdlib.h>
#include <stdio.h>
#include "dietwarning.h"

int vsprintf(char *dest,const char *format, va_list arg_ptr)
{
  return vsnprintf(dest,(size_t)-1-(uintptr_t)dest,format,arg_ptr);
}

link_warning("vsprintf","warning: Avoid *sprintf; use *snprintf. It is more secure.")

LinuxTV legacy CVS <linuxtv.org/cvs>