X-Git-Url: http://git.savannah.gnu.org/gitweb/?p=enscript.git;a=blobdiff_plain;f=compat%2Fxalloc.c;h=419485564fd2e2705031de3683ae38fc8a0ed165;hp=124ed3a8d328f5bde0a6e93ffbe5095c043fe41d;hb=0779ca6512bf93e8f8dfe53c1a3446adb2475acc;hpb=cee050d75d296ea9420e3885fddaae2d43f2521c diff --git a/compat/xalloc.c b/compat/xalloc.c index 124ed3a..4194855 100644 --- a/compat/xalloc.c +++ b/compat/xalloc.c @@ -20,8 +20,8 @@ * * You should have received a copy of the GNU General Public License * along with this program; see the file COPYING. If not, write to - * the Free Software Foundation, 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. + * the Free Software Foundation, 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. */ #include @@ -67,7 +67,7 @@ xmalloc (size) ptr = malloc (size); if (ptr == NULL) { - fprintf (stderr, _("xmalloc(): couldn't allocate %d bytes\n"), size); + fprintf (stderr, _("xmalloc(): couldn't allocate %zd bytes\n"), size); exit (1); } @@ -85,7 +85,7 @@ xcalloc (num, size) ptr = calloc (num, size); if (ptr == NULL) { - fprintf (stderr, _("xcalloc(): couldn't allocate %d bytes\n"), size); + fprintf (stderr, _("xcalloc(): couldn't allocate %zd bytes\n"), size); exit (1); } @@ -106,7 +106,7 @@ xrealloc (ptr, size) nptr = realloc (ptr, size); if (nptr == NULL) { - fprintf (stderr, _("xrealloc(): couldn't reallocate %d bytes\n"), size); + fprintf (stderr, _("xrealloc(): couldn't reallocate %zd bytes\n"), size); exit (1); }