rbb         99/04/12 08:25:53

  Modified:    apr/file_io/unix filedup.c
  Log:
  compiler didn't catch these last time I made them, or at least I missed it, 
but
  this commit will actually let the duplicate file function work.
  
  Revision  Changes    Path
  1.3       +2 -2      apache-apr/apr/file_io/unix/filedup.c
  
  Index: filedup.c
  ===================================================================
  RCS file: /home/cvs/apache-apr/apr/file_io/unix/filedup.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- filedup.c 1999/04/12 15:06:35     1.2
  +++ filedup.c 1999/04/12 15:25:52     1.3
  @@ -52,7 +52,7 @@
    * project, please see <http://www.apache.org/>.
    *
    */
  -
  +#include <strings.h>
   #include "apr_file_io.h"
   #include "apr_general.h"
   
  @@ -65,7 +65,7 @@
           return NULL;
       } 
       old_file->filedes = dup(new_file->filedes); 
  -    old_file->fname = stdup(new_file->fname);
  +    old_file->fname = strdup(new_file->fname);
       old_file->buffered = new_file->buffered;
       old_file->protection = new_file->protection;
       old_file->user = new_file->user;
  
  
  

Reply via email to