about summary refs log tree commit diff
path: root/misc
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-09-24 10:42:58 +0000
committerUlrich Drepper <drepper@redhat.com>1998-09-24 10:42:58 +0000
commit369b193374c8acc4e285c02cfed781f9fe3a018c (patch)
treead78490dd648462651282b5f376bd5a185e157db /misc
parent2b79b6d54362c8b9833488b1c88f1259d8c16a55 (diff)
downloadglibc-369b193374c8acc4e285c02cfed781f9fe3a018c.tar.gz
glibc-369b193374c8acc4e285c02cfed781f9fe3a018c.tar.xz
glibc-369b193374c8acc4e285c02cfed781f9fe3a018c.zip
Update.
1998-09-24  Ulrich Drepper  <drepper@cygnus.com>

	* misc/regexp.h (compile): Use alloca instead of __alloca.  It won't
	pollute the namespace since the compiler will resolve it inline.
	Reported by Florian La Roche <florian@suse.de>.
Diffstat (limited to 'misc')
-rw-r--r--misc/regexp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/regexp.h b/misc/regexp.h
index c2633eb8da..54052b7b0f 100644
--- a/misc/regexp.h
+++ b/misc/regexp.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
 
@@ -141,7 +141,7 @@ compile (char *instring, char *expbuf, __const char *endbuf, int eof)
       if (__current_size + 1 >= __input_size)
 	{
 	  size_t __new_size = __input_size ? 2 * __input_size : 128;
-	  char *__new_room = __alloca (__new_size);
+	  char *__new_room = alloca (__new_size);
 	  /* See whether we can use the old buffer.  */
 	  if (__new_room + __new_size == __input_buffer)
 	    {