# HG changeset patch # User Richard M. Stallman # Date 898923151 0 # Node ID 481ddf2ee159c951a5bdf593dc8b69d1d0b30eb7 # Parent e7bd87148368bb4bc3ab1cc04bd23590ad15e090 (x_list_fonts): Fix prev change: cast result of alloca. diff -r e7bd87148368 -r 481ddf2ee159 src/xterm.c --- 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); }