r2204 - in branches/1.2: . lib/libvarnishapi
    des at projects.linpro.no 
    des at projects.linpro.no
       
    Tue Oct 30 12:05:33 CET 2007
    
    
  
Author: des
Date: 2007-10-30 12:05:32 +0100 (Tue, 30 Oct 2007)
New Revision: 2204
Modified:
   branches/1.2/
   branches/1.2/lib/libvarnishapi/shmlog.c
Log:
Merged revisions 2193 via svnmerge from 
svn+ssh://projects.linpro.no/svn/varnish/trunk/varnish-cache
........
  r2193 | des | 2007-10-30 11:48:30 +0100 (Tue, 30 Oct 2007) | 2 lines
  
  Use a cast to prevent sign extension instead of masking it off after the fact.
........
Property changes on: branches/1.2
___________________________________________________________________
Name: svnmerge-integrated
   - /trunk/varnish-cache:1-2101,2104-2107,2115-2120,2122-2130,2133,2151,2153-2154,2157,2161-2162,2166-2168,2175-2176,2180-2184,2186-2192
   + /trunk/varnish-cache:1-2101,2104-2107,2115-2120,2122-2130,2133,2151,2153-2154,2157,2161-2162,2166-2168,2175-2176,2180-2184,2186-2193
Modified: branches/1.2/lib/libvarnishapi/shmlog.c
===================================================================
--- branches/1.2/lib/libvarnishapi/shmlog.c	2007-10-30 11:04:39 UTC (rev 2203)
+++ branches/1.2/lib/libvarnishapi/shmlog.c	2007-10-30 11:05:32 UTC (rev 2204)
@@ -353,7 +353,7 @@
 			if (*ptr >= ' ' && *ptr <= '~')
 				fprintf(fo, "%c", *ptr);
 			else
-				fprintf(fo, "%%%02x", (*ptr) & 0xff);
+				fprintf(fo, "%%%02x", (unsigned char)*ptr);
 			ptr++;
 		}
 		fprintf(fo, "\"\n");
    
    
More information about the varnish-commit
mailing list