httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@hyperreal.com>
Subject cvs commit: apache/src mod_info.c
Date Thu, 30 Jan 1997 08:52:29 GMT
ben         97/01/30 00:52:29

  Modified:    src       mod_info.c
  Log:
  Remove erroneous sizeofs.
  
  Revision  Changes    Path
  1.13      +3 -3      apache/src/mod_info.c
  
  Index: mod_info.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/mod_info.c,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -C3 -r1.12 -r1.13
  *** mod_info.c	1997/01/28 01:03:06	1.12
  --- mod_info.c	1997/01/30 08:52:27	1.13
  ***************
  *** 98,110 ****
    	while((*s) && ((t-ret) < sizeof(ret))) {
    		if(*s=='<') { 
    			strncpy(t,"&lt;", end_ret - t);
  ! 			t+=4*sizeof(char);
    		} else if(*s=='>') {
    			strncpy(t,"&gt;", end_ret - t);
  ! 			t+=4*sizeof(char);
    		} else if(*s=='&') {
    		    	strncpy(t,"&amp;", end_ret - t);
  ! 			t+=5*sizeof(char);
    		} else {
    		    *t++=*s;
    		}
  --- 98,110 ----
    	while((*s) && ((t-ret) < sizeof(ret))) {
    		if(*s=='<') { 
    			strncpy(t,"&lt;", end_ret - t);
  ! 			t+=4;
    		} else if(*s=='>') {
    			strncpy(t,"&gt;", end_ret - t);
  ! 			t+=4;
    		} else if(*s=='&') {
    		    	strncpy(t,"&amp;", end_ret - t);
  ! 			t+=5;
    		} else {
    		    *t++=*s;
    		}
  
  
  

Mime
View raw message