[Cmake-commits] [cmake-commits] alex committed cmFileCommand.cxx 1.133 1.134

cmake-commits at cmake.org cmake-commits at cmake.org
Sun Sep 6 09:50:05 EDT 2009


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv25627

Modified Files:
	cmFileCommand.cxx 
Log Message:
fix #9316: when converting binary data to hex, also print the leading 0's

Alex


Index: cmFileCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmFileCommand.cxx,v
retrieving revision 1.133
retrieving revision 1.134
diff -C 2 -d -r1.133 -r1.134
*** cmFileCommand.cxx	29 Apr 2009 18:50:28 -0000	1.133
--- cmFileCommand.cxx	6 Sep 2009 13:49:58 -0000	1.134
***************
*** 306,310 ****
        {
        char hex[4];
!       sprintf(hex, "%x", c&0xff);
        output += hex;
        if (sizeLimit > 0)
--- 306,310 ----
        {
        char hex[4];
!       sprintf(hex, "%.2x", c&0xff);
        output += hex;
        if (sizeLimit > 0)



More information about the Cmake-commits mailing list