From: cuz Date: Tue, 10 Oct 2000 20:39:26 +0000 (+0000) Subject: Fixed a warning X-Git-Tag: V2.12.0~3173 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=72f0cd6368e65e1472e7a029b1a67a7b39d8b696;p=cc65 Fixed a warning git-svn-id: svn://svn.cc65.org/cc65/trunk@353 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/cc65/optimize.c b/src/cc65/optimize.c index 19032a528..3b98d64f5 100644 --- a/src/cc65/optimize.c +++ b/src/cc65/optimize.c @@ -331,7 +331,7 @@ static Line* ReplaceLine (Line* L, const char* Format, ...) /* Format the new line */ va_list ap; va_start (ap, Format); - vsprintf (S, Format, ap); + xvsprintf (S, sizeof (S), Format, ap); va_end (ap); /* Get the length of the new line */