aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2008-04-09 18:48:45 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2008-04-09 18:48:45 +0000
commit87710152a4e7a277a2e9ed546568adac9025690a (patch)
tree8310fca56c3999fcf2b2917b60a62263b7b96482
parent38a53bbad65719d7dfbb8f1eb4e63471cd58eb8e (diff)
read as binary to avoid fighting with linefeeds
svn path=/trunk/externals/zexy/; revision=9687
-rw-r--r--src/msgfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/msgfile.c b/src/msgfile.c
index d8af115..35286f4 100644
--- a/src/msgfile.c
+++ b/src/msgfile.c
@@ -568,7 +568,7 @@ static void msgfile_read2(t_msgfile *x, t_symbol *filename, t_symbol *format)
sprintf(filnam, "%s/%s", buf, bufptr);
}
- fil=fopen(filnam, "r");
+ fil=fopen(filnam, "rb");
fseek(fil, 0, SEEK_END);
if(fil==NULL) {
pd_error(x, "could not open '%s'", filnam);