From 0255bd389f4230da940590a0644ff9ee77739015 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 27 Oct 2011 04:28:44 +0000 Subject: fixed error/warning messages svn path=/trunk/externals/hcs/; revision=15665 --- colorpanel.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/colorpanel.c b/colorpanel.c index 7f46351..b787408 100644 --- a/colorpanel.c +++ b/colorpanel.c @@ -34,7 +34,7 @@ static void colorpanel_list(t_colorpanel *x, t_symbol *s, int argc, t_atom *argv char color_string[MAXPDSTRING]; strncpy(color_string,"#",MAXPDSTRING); - if(argc > 2) + if(argc > 3) logpost(x, 2, "[colorpanel] warning more than three elements in list"); for(i=0; i<3; i++) { @@ -47,7 +47,8 @@ static void colorpanel_list(t_colorpanel *x, t_symbol *s, int argc, t_atom *argv } else { - pd_error(x,"[colorpanel] symbol atom in color list"); + pd_error(x,"[colorpanel] symbols are not allowed in the color list"); + return; } } memcpy(x->current_color, color_string, 7); -- cgit v1.2.1