diff --git a/pd/src/d_soundfile.c b/pd/src/d_soundfile.c index 03bb88fea871f6bbae3eda314e82a5d7b365d363..e76cbad8c77574cb19bba228cd187453a801ebd7 100644 --- a/pd/src/d_soundfile.c +++ b/pd/src/d_soundfile.c @@ -864,7 +864,7 @@ static int create_soundfile(t_canvas *canvas, const char *filename, canvas_makefilename(canvas, filenamebuf, buf2, FILENAME_MAX); sys_bashfilename(buf2, buf2); - if ((fd = open(buf2, BINCREATE, 0666)) < 0) + if ((fd = sys_open(buf2, BINCREATE, 0666)) < 0) return (-1); if (write(fd, headerbuf, headersize) < headersize)