git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@3424
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2004-08-06 Erik Petrich <epetrich AT ivorytower.norman.ok.us>
+
+ * src/mcs51/gen.c (emitcode): fixed bug #992819
+
2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
* src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
2004-08-05 Maarten Brock <sourceforge.brock AT dse.nl>
* src/pic/ralloc.c (deassignLR): allthough pic port is buggy already,
if (inst && *inst)
{
if (fmt && *fmt)
if (inst && *inst)
{
if (fmt && *fmt)
- sprintf (lb, "%s\t", inst);
+ SNPRINTF (lb, sizeof(lb), "%s\t", inst);
- sprintf (lb, "%s", inst);
- vsprintf (lb + (strlen (lb)), fmt, ap);
+ SNPRINTF (lb, sizeof(lb), "%s", inst);
+ tvsprintf (lb + strlen(lb), sizeof(lb) - strlen(lb), fmt, ap);
- vsprintf (lb, fmt, ap);
+ tvsprintf (lb, sizeof(lb), fmt, ap);
while (isspace (*lbp))
lbp++;
while (isspace (*lbp))
lbp++;