aboutsummaryrefslogtreecommitdiff
path: root/colorpanel.c
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-10-27 04:28:44 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2011-10-27 04:28:44 +0000
commit0255bd389f4230da940590a0644ff9ee77739015 (patch)
treebf3e179fbd108135d2209ec069d55084e1c08540 /colorpanel.c
parent9d232d8e6976d60b46fc0f3d45cea1826405fda9 (diff)
fixed error/warning messages
svn path=/trunk/externals/hcs/; revision=15665
Diffstat (limited to 'colorpanel.c')
-rw-r--r--colorpanel.c5
1 files 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);