changeset 22626:481ddf2ee159

(x_list_fonts): Fix prev change: cast result of alloca.
author Richard M. Stallman <rms@gnu.org>
date Sat, 27 Jun 1998 04:52:31 +0000
parents e7bd87148368
children bde21619877b
files src/xterm.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Sat Jun 27 04:44:01 1998 +0000
+++ b/src/xterm.c	Sat Jun 27 04:52:31 1998 +0000
@@ -6477,9 +6477,9 @@
 	      char *tmp;
 
 	      num_fonts = 1;
-	      names = alloca (sizeof (char *));
+	      names = (char **) alloca (sizeof (char *));
 	      /* Some systems only allow alloca assigned to a simple var.  */
-	      tmp = alloca (len + 1);  names[0] = tmp;
+	      tmp = (char *) alloca (len + 1);  names[0] = tmp;
 	      bcopy (name, names[0], len + 1);
 	      XFree (name);
 	    }