apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: apr/test testsock.c
Date Sun, 01 Apr 2001 08:43:11 GMT
trawick     01/04/01 00:43:11

  Modified:    test     testsock.c
  Log:
  make sure that a program argument list is terminated with
  a NULL element
  
  Revision  Changes    Path
  1.21      +2 -1      apr/test/testsock.c
  
  Index: testsock.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testsock.c,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- testsock.c	2001/02/16 04:16:10	1.20
  +++ testsock.c	2001/04/01 08:43:11	1.21
  @@ -122,7 +122,7 @@
       apr_proc_t proc2;
       apr_status_t s1;
       apr_status_t s2;
  -    const char *args[3];
  +    const char *args[4];
   
       fprintf(stdout, "Creating children to run network tests.......\n");
       s1 = apr_procattr_create(&attr1, context);
  @@ -155,6 +155,7 @@
               break;
           }
       }
  +    args[3] = NULL;
       s2 = apr_proc_create(&proc2, "./sendfile", args, NULL, attr2, context);
   
       if (s1 != APR_SUCCESS || s2 != APR_SUCCESS) {
  
  
  

Mime
View raw message