From 154a307db33a39cca1aa7dd3718c2eb713660aa7 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Wed, 15 Apr 1998 06:12:48 +0000 Subject: [PATCH] (file_name_as_directory): For empty arg, return `./'. --- src/fileio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/fileio.c b/src/fileio.c index d49d107b9f4..25f4ea6185a 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -484,8 +484,9 @@ file_name_as_directory (out, in) if (size < 0) { - out[0] = '/'; - out[1] = 0; + out[0] = '.'; + out[1] = '/'; + out[2] = 0; return out; } -- 2.39.2