* device/lib/Makefile.in: remove abspath for PORTDIR, introduced in
[fw/sdcc] / src / izt / gen.c
index 01dd25a4808d3beca38e45f4e139a3eeaa6b2849..6579981f1efe1fa4dd41bb9b6ae45208d8aa693f 100644 (file)
@@ -56,7 +56,7 @@ iemit (const char *szFormat,...)
 
   va_start (ap, szFormat);
 
-  tvsprintf (buffer, szFormat, ap);
+  tvsprintf (buffer, sizeof(buffer), szFormat, ap);
 
   _tidyUp (buffer);
 
@@ -234,7 +234,7 @@ _printLines (void)
 {
   // Currently a holder function.  The Z80 needs some special mangling
   // for bank support.
-  printLine (_G.lines.head, codeOutFile);
+  printLine (_G.lines.head, codeOutBuf);
 }
 
 void