You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2011/03/07 02:10:12 UTC

[lucy-commits] svn commit: r1078643 - /incubator/lucy/trunk/clownfish/src/CFCUtil.c

Author: marvin
Date: Mon Mar  7 01:10:11 2011
New Revision: 1078643

URL: http://svn.apache.org/viewvc?rev=1078643&view=rev
Log:
Change mode for a FILE* object from "r" to "rb" so that we get
predictable results under Windows.

Modified:
    incubator/lucy/trunk/clownfish/src/CFCUtil.c

Modified: incubator/lucy/trunk/clownfish/src/CFCUtil.c
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/clownfish/src/CFCUtil.c?rev=1078643&r1=1078642&r2=1078643&view=diff
==============================================================================
--- incubator/lucy/trunk/clownfish/src/CFCUtil.c (original)
+++ incubator/lucy/trunk/clownfish/src/CFCUtil.c Mon Mar  7 01:10:11 2011
@@ -175,7 +175,7 @@ CFCUtil_write_file(const char *filename,
 char*
 CFCUtil_slurp_file(const char *file_path, size_t *len_ptr) 
 {
-    FILE   *const file = fopen(file_path, "r");
+    FILE   *const file = fopen(file_path, "rb");
     char   *contents;
     size_t  len;
     long    check_val;