forwarded 369702 http://sf.net/support/tracker.php?aid=1500248
tag 369702 patch
thanks

Hi,

The attached patch fixes the build failure on amd64 (forwarded upstream).

Thanks,

Matej
--- sdcv-0.4.2/src/lib/lib.cpp
+++ sdcv-0.4.2.amd64/src/lib/lib.cpp
@@ -513,7 +513,7 @@
 {
        fseek(idxfile, wordoffset[page_idx], SEEK_SET);
        guint32 page_size=wordoffset[page_idx+1]-wordoffset[page_idx];
-       fread(wordentry_buf, std::min(sizeof(wordentry_buf), page_size), 1, 
idxfile); //TODO: check returned values, deal with word entry that strlen>255.
+       fread(wordentry_buf, std::min(sizeof(wordentry_buf), 
(size_t)page_size), 1, idxfile); //TODO: check returned values, deal with word 
entry that strlen>255.
        return wordentry_buf;
 }
 

Reply via email to