diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2009-10-09 20:11:47 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2009-10-09 20:11:47 (GMT) |
commit | ebd0c2d3771835a1317c1fd70eafd3ebf2135b01 (patch) | |
tree | 1dc8f5805b5f3f01933bc0035b3b6cad7b04b73a /Source/cmHexFileConverter.cxx | |
parent | f9687e328f7ea64ea6384aae11af36fdd3a12643 (diff) | |
download | CMake-ebd0c2d3771835a1317c1fd70eafd3ebf2135b01.zip CMake-ebd0c2d3771835a1317c1fd70eafd3ebf2135b01.tar.gz CMake-ebd0c2d3771835a1317c1fd70eafd3ebf2135b01.tar.bz2 |
Merge in changes for RC 3
Diffstat (limited to 'Source/cmHexFileConverter.cxx')
-rw-r--r-- | Source/cmHexFileConverter.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmHexFileConverter.cxx b/Source/cmHexFileConverter.cxx index 2970531..2ff7945 100644 --- a/Source/cmHexFileConverter.cxx +++ b/Source/cmHexFileConverter.cxx @@ -172,7 +172,10 @@ cmHexFileConverter::FileType cmHexFileConverter::DetermineFileType( return Binary; } - fgets(buf, 1024, inFile); + if(!fgets(buf, 1024, inFile)) + { + buf[0] = 0; + } fclose(inFile); FileType type = Binary; unsigned int minLineLength = 0; |