]> git.eshelyaron.com Git - emacs.git/commitdiff
(file_name_as_directory): For empty arg, return `./'.
authorKarl Heuer <kwzh@gnu.org>
Wed, 15 Apr 1998 06:12:48 +0000 (06:12 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 15 Apr 1998 06:12:48 +0000 (06:12 +0000)
src/fileio.c

index d49d107b9f4fc457a71555f3ad9c4c9c5978f242..25f4ea6185ab6025f543fd59c793d0972cc79b0f 100644 (file)
@@ -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;
     }