Mercurial > hg > xemacs-beta
diff src/device-x.c @ 267:966663fcf606 r20-5b32
Import from CVS: tag r20-5b32
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:26:29 +0200 |
parents | 727739f917cb |
children | c5d627a313b1 |
line wrap: on
line diff
--- a/src/device-x.c Mon Aug 13 10:25:39 2007 +0200 +++ b/src/device-x.c Mon Aug 13 10:26:29 2007 +0200 @@ -329,7 +329,7 @@ This is in addition to the standard app-defaults files, and does not override resources defined elsewhere */ CONST char *data_dir; - char path[MAXPATHLEN]; + char *path; XrmDatabase db = XtDatabase (dpy); /* ### XtScreenDatabase(dpy) ? */ CONST char *locale = XrmLocaleOfDatabase (db); @@ -337,6 +337,7 @@ XSTRING_LENGTH (Vx_app_defaults_directory) > 0) { GET_C_STRING_FILENAME_DATA_ALLOCA(Vx_app_defaults_directory, data_dir); + path = (char *)alloca (strlen (data_dir) + strlen (locale) + 7); sprintf (path, "%s%s/Emacs", data_dir, locale); if (!access (path, R_OK)) XrmCombineFileDatabase (path, &db, False); @@ -344,6 +345,7 @@ else if (STRINGP (Vdata_directory) && XSTRING_LENGTH (Vdata_directory) > 0) { GET_C_STRING_FILENAME_DATA_ALLOCA (Vdata_directory, data_dir); + path = (char *)alloca (strlen (data_dir) + 13 + strlen (locale) + 7); sprintf (path, "%sapp-defaults/%s/Emacs", data_dir, locale); if (!access (path, R_OK)) XrmCombineFileDatabase (path, &db, False); @@ -364,7 +366,8 @@ /* search for a matching visual if requested by the user, or setup the display default */ numargs = 0; { - char buf1[100],buf2[100]; + char *buf1 = (char *)alloca (strlen (app_name) + 17); + char *buf2 = (char *)alloca (strlen (app_class) + 17); char *type; XrmValue value;