commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject cvs commit: jakarta-commons/daemon/src/native/unix/native home.c
Date Wed, 31 Dec 2003 04:52:30 GMT
billbarker    2003/12/30 20:52:30

  Modified:    daemon/src/native/unix/native home.c
  Log:
  Fix parsing of 'jvm.cfg' files for the new 1.4.x format.
  
  Fix for Bug #25790
  
  Revision  Changes    Path
  1.2       +6 -2      jakarta-commons/daemon/src/native/unix/native/home.c
  
  Index: home.c
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/daemon/src/native/unix/native/home.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- home.c	4 Sep 2003 23:28:20 -0000	1.1
  +++ home.c	31 Dec 2003 04:52:30 -0000	1.2
  @@ -81,7 +81,7 @@
   /* Parse a VM configuration file */
   static bool parse(home_data *data) {
       FILE *cfgf=fopen(data->cfgf,"r");
  -    char *ret=NULL;
  +    char *ret=NULL, *sp;
       char buf[1024];
   
       if (cfgf==NULL) return(false);
  @@ -104,6 +104,10 @@
                   ret[pos--]='\0';
               } else break;
           }
  +        /* Format changed for 1.4 JVMs */
  +        sp = strchr(ret, ' ');
  +        if(sp != NULL)
  +            *sp = '\0'
   
           /* Did we find something significant? */
           if (strlen(ret)>0) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message