summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-03-08 02:43:14 +0000
committerJim Meyering <jim@meyering.net>1999-03-08 02:43:14 +0000
commit546f3f81da5d5abf19505d1144f62a4662d8c54e (patch)
tree624cbaf373d87856acbcbdcccf75edb72519f198
parente879a5a73ec82217f4601c75784e0a8e3dd712a5 (diff)
downloadcoreutils-546f3f81da5d5abf19505d1144f62a4662d8c54e.tar.xz
(xalloc_fail): Use "%s" format so the message doesn't
have to be scanned for % signs. Suggestion from François Pinard.
-rw-r--r--lib/xmalloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/xmalloc.c b/lib/xmalloc.c
index 01ac54824..e86582743 100644
--- a/lib/xmalloc.c
+++ b/lib/xmalloc.c
@@ -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. */