diff options
author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-28 18:13:49 +0000 |
---|---|---|
committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-28 18:13:49 +0000 |
commit | eab1b679e07aa9debd2c85efca6629cb71b32ec0 (patch) | |
tree | 331db9ae4336329d2bfe9a84fcde0aa8f9613134 /editors/uemacs/files/patch-src_bind.c | |
parent | Fix CANNA option. (diff) |
Rename editors/ patch-xy patches to reflect the files they modify.
Notes
Notes:
svn path=/head/; revision=363213
Diffstat (limited to 'editors/uemacs/files/patch-src_bind.c')
-rw-r--r-- | editors/uemacs/files/patch-src_bind.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/editors/uemacs/files/patch-src_bind.c b/editors/uemacs/files/patch-src_bind.c new file mode 100644 index 000000000000..e511ee39a9f2 --- /dev/null +++ b/editors/uemacs/files/patch-src_bind.c @@ -0,0 +1,25 @@ +--- src/bind.c.orig Sun Nov 19 03:09:20 1995 ++++ src/bind.c Wed Mar 25 15:00:37 1998 +@@ -634,7 +634,8 @@ + register char *sp; /* pointer into path spec */ + register int i; /* index */ + static char fspec[NFILEN]; /* full path spec to search */ +- ++ char patha[NFILEN]; ++ + /* if we have an absolute path.. check only there! */ + sp = fname; + while (*sp) { +@@ -689,9 +690,11 @@ + #if OS2 + path = getenv("DPATH"); + #else +- path = getenv("PATH"); ++ strncpy(patha, getenv("PATH"), NFILEN - 25); ++ strcat(patha, ":%%PREFIX%%/share/uemacs"); + #endif + #endif ++ path = patha; + if (path != NULL) + while (*path) { + |