aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2015-10-06 13:17:38 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2015-10-06 13:17:38 +0000
commit8583fea0b31dd41ddf0203c9b5cb605bbab0cd6c (patch)
tree62c38ca633e1fcc92df4e73674626c94922419f7 /src
parent3cc2fdca7973bcfe004c86fc827a2bdc5ad8e11f (diff)
write to canvas-local directoryHEADsvn2git-headexternals/zexy
in sync with [textfile]. the previous use of canvas_makefilename() was for nuffing svn path=/trunk/externals/zexy/; revision=17574
Diffstat (limited to 'src')
-rw-r--r--src/msgfile.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/msgfile.c b/src/msgfile.c
index 1ed6ec8..e1cc7f3 100644
--- a/src/msgfile.c
+++ b/src/msgfile.c
@@ -875,9 +875,6 @@ static void msgfile_write(t_msgfile *x, t_symbol *filename,
cur = cur->next;
}
- canvas_makefilename(x->x_canvas, filename->s_name,
- buf, MAXPDSTRING);
-
if(format&&gensym("")!=format) {
if(gensym("cr")==format) {
mode = CR_MODE;
@@ -919,7 +916,9 @@ static void msgfile_write(t_msgfile *x, t_symbol *filename,
}
/* open */
- sys_bashfilename(filename->s_name, filnam);
+ canvas_makefilename(x->x_canvas, filename->s_name,
+ buf, MAXPDSTRING);
+ sys_bashfilename(buf, filnam);
if (!(f = z_fopen(filnam, "w"))) {
pd_error(x, "msgfile : failed to open %s", filnam);
} else {