From: Richard M. Stallman Date: Sat, 27 Jun 1998 04:52:31 +0000 (+0000) Subject: (x_list_fonts): Fix prev change: cast result of alloca. X-Git-Tag: emacs-20.3~453 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=16f06ce000aef729efa58d49157221ad96734f18;p=emacs.git (x_list_fonts): Fix prev change: cast result of alloca. --- diff --git a/src/xterm.c b/src/xterm.c index 868c8688e42..d329483ff4c 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -6477,9 +6477,9 @@ x_list_fonts (f, pattern, size, maxnames) 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); }