diff src/fileio.c @ 185:3d6bfa290dbd r20-3b19

Import from CVS: tag r20-3b19
author cvs
date Mon, 13 Aug 2007 09:55:28 +0200
parents e121b013d1f0
children 489f57a838ef
line wrap: on
line diff
--- a/src/fileio.c	Mon Aug 13 09:54:24 2007 +0200
+++ b/src/fileio.c	Mon Aug 13 09:55:28 2007 +0200
@@ -599,7 +599,7 @@
 The result can be used as the value of `default-directory'
 or passed as second argument to `expand-file-name'.
 For a Unix-syntax file name, just appends a slash.
-On VMS, converts \"[X]FOO.DIR\" to \"[X.FOO]\", etc.
+On VMS, converts "[X]FOO.DIR" to "[X.FOO]", etc.
 */
        (file))
 {
@@ -783,8 +783,8 @@
 This operation exists because a directory is also a file, but its name as
 a directory is different from its name as a file.
 In Unix-syntax, this function just removes the final slash.
-On VMS, given a VMS-syntax directory name such as \"[X.Y]\",
-it returns a file name such as \"[X]Y.DIR.1\".
+On VMS, given a VMS-syntax directory name such as "[X.Y]",
+it returns a file name such as "[X]Y.DIR.1".
 */
        (directory))
 {
@@ -2583,8 +2583,7 @@
   bufsize = 100;
   while (1)
     {
-      buf = (char *) xmalloc (bufsize);
-      memset (buf, 0, bufsize);
+      buf = xnew_array_and_zero (char, bufsize);
       valsize = readlink ((char *) XSTRING_DATA (filename),
 			  buf, bufsize);
       if (valsize < bufsize) break;
@@ -3627,7 +3626,7 @@
 			   LSTREAM_BLOCKN_BUFFERED, 65536);
 #ifdef MULE
     outstream =
-      make_encoding_output_stream ( XLSTREAM (outstream), codesys);
+      make_encoding_output_stream (XLSTREAM (outstream), codesys);
     Lstream_set_buffering (XLSTREAM (outstream),
 			   LSTREAM_BLOCKN_BUFFERED, 65536);
 #endif /* MULE */