httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject cvs commit: httpd-2.0/modules/mappers mod_rewrite.c
Date Tue, 29 Jan 2002 09:09:47 GMT
martin      02/01/29 01:09:47

  Modified:    modules/mappers mod_rewrite.c
  Log:
  No need to use strcpy() where a ptr assignment is ok
  
  Revision  Changes    Path
  1.94      +4 -4      httpd-2.0/modules/mappers/mod_rewrite.c
  
  Index: mod_rewrite.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/mappers/mod_rewrite.c,v
  retrieving revision 1.93
  retrieving revision 1.94
  diff -u -r1.93 -r1.94
  --- mod_rewrite.c	11 Jan 2002 13:38:28 -0000	1.93
  +++ mod_rewrite.c	29 Jan 2002 09:09:47 -0000	1.94
  @@ -3144,8 +3144,8 @@
       char *str1;
       char str2[512];
       char str3[1024];
  -    char type[20];
  -    char redir[20];
  +    char *type;
  +    char redir[20]; /* enough for "/redir#%d" if int is 32 bit */
       va_list ap;
       int i;
       apr_size_t nbytes;
  @@ -3194,10 +3194,10 @@
       apr_vsnprintf(str2, sizeof(str2), text, ap);
   
       if (r->main == NULL) {
  -        strcpy(type, "initial");
  +        type = "initial";
       }
       else {
  -        strcpy(type, "subreq");
  +        type = "subreq";
       }
   
       for (i = 0, req = r; req->prev != NULL; req = req->prev) {
  
  
  

Mime
View raw message