aboutsummaryrefslogtreecommitdiff
path: root/src/freadln.c
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2015-10-06 13:00:36 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2015-10-06 13:00:36 +0000
commit3cc2fdca7973bcfe004c86fc827a2bdc5ad8e11f (patch)
treeb06e3e2ef351dc668e723b32aede3e083c5a1c19 /src/freadln.c
parent9f880fa1eca65ed6b1e30624a97f543f2bcfb4a1 (diff)
use z_wrappers around sys_open/close()
svn path=/trunk/externals/zexy/; revision=17573
Diffstat (limited to 'src/freadln.c')
-rw-r--r--src/freadln.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/freadln.c b/src/freadln.c
index 42ca868..af91114 100644
--- a/src/freadln.c
+++ b/src/freadln.c
@@ -62,7 +62,7 @@ typedef struct freadln {
static void freadln_close (t_freadln *x)
{
if(x->x_file) {
- fclose(x->x_file);
+ z_fclose(x->x_file);
}
x->x_file=0;
if(x->x_filename) {
@@ -120,7 +120,7 @@ static void freadln_open (t_freadln *x, t_symbol *s, t_symbol*type)
strcpy(x->x_filename,filenamebuf);
strcpy(x->x_filename+len,"/");
strcpy(x->x_filename+len+1,filenamebufptr);
- if (!(x->x_file=fopen(x->x_filename, "r"))) {
+ if (!(x->x_file=z_fopen(x->x_filename, "r"))) {
pd_error(x, "freadln: failed to fopen %s",x->x_filename);
return;
}