changeset 21543:55865851fd69

(file_name_as_directory): For empty arg, return `./'.
author Karl Heuer <kwzh@gnu.org>
date Wed, 15 Apr 1998 06:12:48 +0000
parents 19a199aaf3bc
children 95ec24fc6d78
files src/fileio.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/fileio.c	Wed Apr 15 06:10:51 1998 +0000
+++ b/src/fileio.c	Wed Apr 15 06:12:48 1998 +0000
@@ -484,8 +484,9 @@
 
   if (size < 0)
     {
-      out[0] = '/';
-      out[1] = 0;
+      out[0] = '.';
+      out[1] = '/';
+      out[2] = 0;
       return out;
     }