diff options
author | Andrej Rode <andrej.rode@ettus.com> | 2016-12-16 10:40:00 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-01-12 15:15:37 -0800 |
commit | 6d7692f393b9d1e5e75b8239a3249ee02e0441d9 (patch) | |
tree | 3fc05ae46f9be46f8fcab696f690e589aaf97c60 /host/lib/usrp/usrp2/n200_image_loader.cpp | |
parent | fba670a3c7d45847e48fc9dc8a3bdb6da0b1b948 (diff) | |
download | uhd-6d7692f393b9d1e5e75b8239a3249ee02e0441d9.tar.gz uhd-6d7692f393b9d1e5e75b8239a3249ee02e0441d9.tar.bz2 uhd-6d7692f393b9d1e5e75b8239a3249ee02e0441d9.zip |
usrp2: fixes according to coverity reports
Diffstat (limited to 'host/lib/usrp/usrp2/n200_image_loader.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/n200_image_loader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp2/n200_image_loader.cpp b/host/lib/usrp/usrp2/n200_image_loader.cpp index 16cc7b08a..c68484600 100644 --- a/host/lib/usrp/usrp2/n200_image_loader.cpp +++ b/host/lib/usrp/usrp2/n200_image_loader.cpp @@ -324,7 +324,7 @@ static void n200_validate_fpga_image(n200_session_t &session){ image_file.seekg(0, std::ios::beg); image_file.read((char*)test_bytes, 63); bool is_good = false; - for(int i = 0; i < 63; i++){ + for(int i = 0; i < 62; i++){ if(test_bytes[i] == 255) continue; else if(test_bytes[i] == 170 and test_bytes[i+1] == 153){ |