aboutsummaryrefslogtreecommitdiff
path: root/sonogram~/sonogram~.c
diff options
context:
space:
mode:
Diffstat (limited to 'sonogram~/sonogram~.c')
-rw-r--r--sonogram~/sonogram~.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonogram~/sonogram~.c b/sonogram~/sonogram~.c
index e6c3887..92850a9 100644
--- a/sonogram~/sonogram~.c
+++ b/sonogram~/sonogram~.c
@@ -851,7 +851,8 @@ static void sonogram_save(t_gobj *z, t_binbuf *b)
binbuf_addv(b, "ssiisiii", gensym("#X"),gensym("obj"),
(t_int)x->x_obj.te_xpix, (t_int)x->x_obj.te_ypix,
- gensym("sonogram~"), x->x_size, x->x_graphic, x->x_phaso );
+ atom_getsymbol(binbuf_getvec(x->x_obj.te_binbuf)),
+ x->x_size, x->x_graphic, x->x_phaso );
binbuf_addv(b, ";");
}