aboutsummaryrefslogtreecommitdiff
path: root/src/fwriteln.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/fwriteln.c
parent9f880fa1eca65ed6b1e30624a97f543f2bcfb4a1 (diff)
use z_wrappers around sys_open/close()
svn path=/trunk/externals/zexy/; revision=17573
Diffstat (limited to 'src/fwriteln.c')
-rw-r--r--src/fwriteln.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fwriteln.c b/src/fwriteln.c
index 1822631..e630929 100644
--- a/src/fwriteln.c
+++ b/src/fwriteln.c
@@ -53,7 +53,7 @@ typedef struct fwriteln {
static void fwriteln_close (t_fwriteln *x)
{
if(x->x_file) {
- fclose(x->x_file);
+ z_fclose(x->x_file);
}
x->x_file=0;
if(x->x_filename) {
@@ -94,7 +94,7 @@ static void fwriteln_open (t_fwriteln *x, t_symbol *s, t_symbol*type)
strcpy(x->linebreak_chr,";\n");
}
- if (!(x->x_file=fopen(filename, "w"))) {
+ if (!(x->x_file=z_fopen(filename, "w"))) {
pd_error(x, "failed to open %128s",filename);
free(filename);
return;