summaryrefslogtreecommitdiff
path: root/iomfsetgamma.c
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-10-08 12:38:05 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-10-08 12:38:05 -0700
commita1c9d67a61aa4fe365025f138a076b8ffa322c0c (patch)
tree57095ecbf82c1eb5df9c1f111d5a0be4376c68c5 /iomfsetgamma.c
parente07d8f4f439b50d2dd8804730dcd8af72f0d41b6 (diff)
Use b flag to fopen() files for binary.
Diffstat (limited to 'iomfsetgamma.c')
-rw-r--r--iomfsetgamma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iomfsetgamma.c b/iomfsetgamma.c
index 71159d5..6dbc2e7 100644
--- a/iomfsetgamma.c
+++ b/iomfsetgamma.c
@@ -73,7 +73,7 @@ int main(int argc, char *argv[]) {
uint32_t data[0xc00 / sizeof(uint32_t)];
memset(data, 0, sizeof(data));
- FILE *file = fopen("/tmp/.iomfgamma.dat", "r");
+ FILE *file = fopen("/tmp/.iomfgamma.dat", "rb");
if (file == NULL) {
$IOMobileFramebufferGetGammaTable = dlsym(RTLD_DEFAULT, "IOMobileFramebufferGetGammaTable");
_assert($IOMobileFramebufferGetGammaTable != NULL);
@@ -86,7 +86,7 @@ int main(int argc, char *argv[]) {
fwrite(data, 1, sizeof(data), file);
fclose(file);
- file = fopen("/tmp/.iomfgamma.dat", "r");
+ file = fopen("/tmp/.iomfgamma.dat", "rb");
_assert(file != NULL);
}