summaryrefslogtreecommitdiff
path: root/third_party/numerics/safe_conversions_impl.h
diff options
context:
space:
mode:
authorJohn Abd-El-Malek <jam@chromium.org>2014-06-26 10:18:11 -0700
committerJohn Abd-El-Malek <jam@chromium.org>2014-06-26 10:18:11 -0700
commita548d30f8126d167210fdc26783454b0b3752004 (patch)
tree27f1cd9eb73bb3bfb27370f7efb8419d4ddd9d0e /third_party/numerics/safe_conversions_impl.h
parent9a52eb09edf2f5001f33f2227cc3888ef2e8c338 (diff)
downloadpdfium-a548d30f8126d167210fdc26783454b0b3752004.tar.xz
Explicitly use binary mode when opening files in the pdfium_test sample.
This patch adds the 'b' (binary mode) flag to the fopen calls. Before the fix the PPM images written with --write_images were corrupted under Windows because on this platform in text mode all occurrences of the byte 0xa (line feed) are replaced with the bytes 0x0d (carriage return) and 0x0a (line feed). On UNIX platforms the 'b' flag is supported but ignored, because no translation of the line feed character takes place. BUG=18 R=jam@chromium.org Original patch by Michael Doppler <m.doppler@gmail.com> Review URL: https://codereview.chromium.org/343303004
Diffstat (limited to 'third_party/numerics/safe_conversions_impl.h')
0 files changed, 0 insertions, 0 deletions