apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: apr/test testfileinfo.c
Date Thu, 19 Dec 2002 21:18:10 GMT
bnicholes    2002/12/19 13:18:10

  Modified:    test     testfileinfo.c
  Log:
  Missing a space between each missing item in the file info and the NULL as
  the last argument to the apr_pstrcat() so that it doesn't run off the end.
  
  Revision  Changes    Path
  1.6       +2 -2      apr/test/testfileinfo.c
  
  Index: testfileinfo.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testfileinfo.c,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- testfileinfo.c	24 Nov 2002 04:57:35 -0000	1.5
  +++ testfileinfo.c	19 Dec 2002 21:18:10 -0000	1.6
  @@ -125,7 +125,7 @@
           str = apr_pstrdup(p, "APR_INCOMPLETE:  Missing ");
           for (i = 0; vfi[i].bits; ++i) {
               if (vfi[i].bits & ~finfo.valid) {
  -                str = apr_pstrcat(p, str, vfi[i].description);
  +                str = apr_pstrcat(p, str, vfi[i].description, " ", NULL);
               }
           }
           CuFail(tc, str);
  @@ -146,7 +146,7 @@
           str = apr_pstrdup(p, "APR_INCOMPLETE:  Missing ");
           for (i = 0; vfi[i].bits; ++i) {
               if (vfi[i].bits & ~finfo.valid) {
  -                str = apr_pstrcat(p, str, vfi[i].description);
  +                str = apr_pstrcat(p, str, vfi[i].description, " ", NULL);
               }
           }
           CuFail(tc, str);
  
  
  

Mime
View raw message