Buffer overflow hunt: removing strcpy, strcat, sprintf
[fw/sdcc] / src / asm.h
index e46344aed442e9d3a09b7f741b9c129ccd1769f5..23263cb90e8264bf80807e4e577c165737f8d668 100644 (file)
--- a/src/asm.h
+++ b/src/asm.h
@@ -1,9 +1,9 @@
 #ifndef ASM_PORT_INCLUDE
 #define ASM_PORT_INCLUDE
 
-void tfprintf (FILE * fp, const char *szFormat,...);
-void tsprintf (char *buffer, const char *szFormat,...);
-void tvsprintf (char *buffer, const char *szFormat, va_list ap);
+void tfprintf (FILE * fp, const char *szFormat, ...);
+void tsprintf (char *buffer, size_t len, const char *szFormat, ...);
+void tvsprintf (char *buffer, size_t len, const char *szFormat, va_list ap);
 
 typedef struct
   {