You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by rb...@locus.apache.org on 2000/12/03 06:29:51 UTC

cvs commit: apr/dso/unix dso.c

rbb         00/12/02 21:29:50

  Modified:    dso/unix dso.c
  Log:
  Get apr_dso_error working properly on Unix.
  
  Revision  Changes    Path
  1.26      +4 -1      apr/dso/unix/dso.c
  
  Index: dso.c
  ===================================================================
  RCS file: /home/cvs/apr/dso/unix/dso.c,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- dso.c	2000/11/27 19:13:15	1.25
  +++ dso.c	2000/12/03 05:29:50	1.26
  @@ -53,6 +53,7 @@
    */
   
   #include "unix/dso.h"
  +#include "apr_strings.h"
   
   #if APR_HAS_DSO
   
  @@ -147,8 +148,10 @@
   
   const char *apr_dso_error(apr_dso_handle_t *dso, char *buffer, apr_size_t buflen)
   {
  -    if (dso->errormsg)
  +    if (dso->errormsg) {
  +        apr_cpystrn(buffer, dso->errormsg, buflen);
           return dso->errormsg;
  +    }
       return "No Error";
   }