diff options
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r-- | Source/cmFileCommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index a8060b0..d1979dd 100644 --- a/Source/cmFileCommand.cxx +++ b/Source/cmFileCommand.cxx @@ -305,7 +305,7 @@ bool cmFileCommand::HandleReadCommand(std::vector<std::string> const& args) while((sizeLimit != 0) && (c = file.get(), file)) { char hex[4]; - sprintf(hex, "%x", c&0xff); + sprintf(hex, "%.2x", c&0xff); output += hex; if (sizeLimit > 0) { |