This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH to fix cpplib argument bug
- To: gcc-patches at gcc dot gnu dot org
- Subject: PATCH to fix cpplib argument bug
- From: Jeff Garzik <jgarzik at pobox dot com>
- Date: Tue, 07 Sep 1999 14:31:29 -0400
- Organization: none
1999-09-07 Jeff Garzik <jgarzik@pobox.com>
* cpplib.c (cpp_push_buffer): Correct order of xcalloc() arguments.
--
Custom driver development | Never worry about theory as long
Open source programming | as the machinery does what it's
| supposed to do. -- R. A. Heinlein
Index: cpplib.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cpplib.c,v
retrieving revision 1.90
diff -u -r1.90 cpplib.c
--- cpplib.c 1999/09/07 15:41:25 1.90
+++ cpplib.c 1999/09/07 18:30:03
@@ -718,7 +718,7 @@
return NULL;
}
- new = (cpp_buffer *) xcalloc (sizeof (cpp_buffer), 1);
+ new = (cpp_buffer *) xcalloc (1, sizeof (cpp_buffer));
new->if_stack = pfile->if_stack;
new->cleanup = null_cleanup;