]> git.gag.com Git - fw/sdcc/commitdiff
Fixed incorrect number of parameters to sprintf() in line 1267.
authorjesusc <jesusc@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 9 Sep 2002 09:50:33 +0000 (09:50 +0000)
committerjesusc <jesusc@4a8a32a2-be11-0410-ad9d-d568d2c75423>
Mon, 9 Sep 2002 09:50:33 +0000 (09:50 +0000)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2098 4a8a32a2-be11-0410-ad9d-d568d2c75423

as/mcs51/lklist.c

index cdf4fe25c50d04d0973d74224d780954e02e5ef4..680a2d4a62482aebf3f238ab8e23bf6fdf03eb89 100644 (file)
@@ -1264,7 +1264,8 @@ int summary(struct area * areap)
        if(Ram[7].Size>0x80)
        {
                sprintf(buff, "*** ERROR: Insuficient DRAM memory.  "
-                                       "%d byte%s short.", Ram[7].Size-0x80);
+                                       "%d byte%s short.\n", Ram[7].Size-0x80,
+                                       ((Ram[7].Size-0x80)==1)?"":"s");
                REPORT_ERROR(buff);
        }