Buffer overflow hunt: removing strcpy, strcat, sprintf
[fw/sdcc] / src / asm.h
index 3ae8fc6a5a8bd033265fab8eb72376f2cf45cf59..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
   {
@@ -35,5 +35,6 @@ void asm_addTree (const ASM_MAPPINGS * pMappings);
 
 char *FileBaseName (char *fileFullName);
 
+char *printILine (iCode *ic);
 char *printCLine (char *srcFile, int lineno);
 #endif