1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 11:16:16 +02:00

(xalloc_fail): Use "%s" format so the message doesn't

have to be scanned for % signs.  Suggestion from Franois Pinard.
This commit is contained in:
Jim Meyering
1999-03-08 02:43:14 +00:00
parent e879a5a73e
commit 546f3f81da

View File

@@ -1,5 +1,5 @@
/* xmalloc.c -- malloc with out of memory checking
Copyright (C) 1990-1997, 98 Free Software Foundation, Inc.
Copyright (C) 1990-1997, 98, 99 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -70,7 +70,7 @@ xalloc_fail (void)
{
if (xalloc_fail_func)
(*xalloc_fail_func) ();
error (xalloc_exit_failure, 0, xalloc_msg_memory_exhausted);
error (xalloc_exit_failure, 0, "%s", xalloc_msg_memory_exhausted);
}
/* Allocate N bytes of memory dynamically, with error checking. */