diff --git a/build/check-source.sh b/build/check-source.sh index 18d3dd3a..2765bd35 100755 --- a/build/check-source.sh +++ b/build/check-source.sh @@ -73,7 +73,7 @@ esac if [ -f "$top_srcdir/.git/index" ]; then info "detected Git repository" repo=git -elif [ -f "$top_srcdir/.svn/format" ]; then +elif [ -f "$top_srcdir/.svn/format" -o -f "$top_srcdir/.svn/wc.db" ]; then info "detected SVN repository" repo=svn else diff --git a/src/image/codec/zed-image.cpp b/src/image/codec/zed-image.cpp index fed03145..f808e394 100644 --- a/src/image/codec/zed-image.cpp +++ b/src/image/codec/zed-image.cpp @@ -168,7 +168,7 @@ bool ZedImageData::Open(char const *path) //Prepare read uint32_t header_length = (size_y + 5) & 0xFC; - uint32_t data_length = (file_offset[i+1] - file_offset[i]) - header_length; + uint32_t data_length = (file_offset[i+1] - file_offset[i]) - header_length; uint32_t data_pos = file_offset[i] + header_length; //Prepare buffer and tiles infos