summaryrefslogtreecommitdiff
path: root/src/xditview
diff options
context:
space:
mode:
authorwlemb <wlemb>2000-12-02 21:12:53 +0000
committerwlemb <wlemb>2000-12-02 21:12:53 +0000
commit01c015c2210fbf5f2461e81c8a202254a4befa18 (patch)
tree5ee4dce6e27fb4b5ad6a0542eb7af50d2c0f740b /src/xditview
parentd4bc4f944b645522fb2408c9cda9370c11a912a2 (diff)
downloadgroff-01c015c2210fbf5f2461e81c8a202254a4befa18.tar.gz
* device.c (find_file): Remove home directory in search path.
Diffstat (limited to 'src/xditview')
-rw-r--r--src/xditview/ChangeLog4
-rw-r--r--src/xditview/device.c7
2 files changed, 4 insertions, 7 deletions
diff --git a/src/xditview/ChangeLog b/src/xditview/ChangeLog
index 8f32eb40..24445807 100644
--- a/src/xditview/ChangeLog
+++ b/src/xditview/ChangeLog
@@ -1,3 +1,7 @@
+2000-12-02 Werner LEMBERG <wl@gnu.org>
+
+ * device.c (find_file): Remove home directory in search path.
+
2000-11-14 Werner LEMBERG <wl@gnu.org>
* device.c (open_device_file): Remove `path' parameter.
diff --git a/src/xditview/device.c b/src/xditview/device.c
index 8c026e7d..264f681e 100644
--- a/src/xditview/device.c
+++ b/src/xditview/device.c
@@ -493,22 +493,15 @@ FILE *find_file(file, result)
FILE *fp;
char *path;
char *env;
- char *home;
env = getenv(FONTPATH_ENV_VAR);
- home = getenv("HOME");
path = XtMalloc(((env && *env) ? strlen(env) + 1 : 0)
- + ((home && *home) ? strlen(home) + 1 : 0)
+ strlen(FONTPATH) + 1);
*path = '\0';
if (env && *env) {
strcat(path, env);
strcat(path, ":");
}
- if (home && *home) {
- strcat(path, home);
- strcat(path, ":");
- }
strcat(path, FONTPATH);
*result = NULL;