diff options
Diffstat (limited to 'Build/source/libs/teckit/TECkit-src/SFconv/SFconv.cpp')
-rw-r--r-- | Build/source/libs/teckit/TECkit-src/SFconv/SFconv.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Build/source/libs/teckit/TECkit-src/SFconv/SFconv.cpp b/Build/source/libs/teckit/TECkit-src/SFconv/SFconv.cpp index 0604a08dd0d..c7e6e68c777 100644 --- a/Build/source/libs/teckit/TECkit-src/SFconv/SFconv.cpp +++ b/Build/source/libs/teckit/TECkit-src/SFconv/SFconv.cpp @@ -313,7 +313,7 @@ makeConverter(const string& mappingName, int direction) fprintf(stderr, "unable to read mapping file for %s (file %s)\n", mappingName.c_str(), mapFileName.c_str()); exit(1); } - fread(buf, 1, fileSize, mapFile); + fileSize = fread(buf, 1, fileSize, mapFile); fclose(mapFile); TECkit_Converter converter; @@ -629,7 +629,7 @@ process(const char* inputFile, const char* outputFile) // *** Unicode to Byte conversion Byte bom[3]; long pos = ftell(inFile); - if (fread(bom, 3, 1, inFile)) { + if (fread(bom, 3, 1, inFile) > 0) { if (bom[0] == 0xef && bom[1] == 0xbb && bom[2] == 0xbf) { inForm = kForm_UTF8; } |