summaryrefslogtreecommitdiffstats
path: root/src/memline.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/memline.c')
-rw-r--r--src/memline.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/memline.c b/src/memline.c
index ea7d0e13b2..b8d13d942d 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -3572,8 +3572,9 @@ makeswapname(fname, ffname, buf, dir_name)
#else
(buf->b_p_sn || buf->b_shortname),
#endif
-#ifdef RISCOS
- /* Avoid problems if fname has special chars, eg <Wimp$Scrap> */
+#if defined(VMS) || defined(RISCOS)
+ /* Avoid problems if fname has special chars, eg <Wimp$Scrap>.
+ * For VMS always use full path for swapfile. */
ffname,
#else
# ifdef HAVE_READLINK