aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-06-27 04:52:31 +0000
committerRichard M. Stallman1998-06-27 04:52:31 +0000
commit16f06ce000aef729efa58d49157221ad96734f18 (patch)
treef31e646659bb863a7d5bcb8bac2155c405c1e42c /src
parent4b817373b7f24ac8384a6cf748e3bf0c5e667247 (diff)
downloademacs-16f06ce000aef729efa58d49157221ad96734f18.tar.gz
emacs-16f06ce000aef729efa58d49157221ad96734f18.zip
(x_list_fonts): Fix prev change: cast result of alloca.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c4
1 files changed, 2 insertions, 2 deletions
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)
6477 char *tmp; 6477 char *tmp;
6478 6478
6479 num_fonts = 1; 6479 num_fonts = 1;
6480 names = alloca (sizeof (char *)); 6480 names = (char **) alloca (sizeof (char *));
6481 /* Some systems only allow alloca assigned to a simple var. */ 6481 /* Some systems only allow alloca assigned to a simple var. */
6482 tmp = alloca (len + 1); names[0] = tmp; 6482 tmp = (char *) alloca (len + 1); names[0] = tmp;
6483 bcopy (name, names[0], len + 1); 6483 bcopy (name, names[0], len + 1);
6484 XFree (name); 6484 XFree (name);
6485 } 6485 }