From 947d95da8269ba60c858e42bf72418092cdc0c8c Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Thu, 4 Oct 2012 18:43:37 +0000 Subject: fix: 'format not a string literal and no format arguments [-Werror=format-security]' svn path=/trunk/externals/ext13/; revision=16330 --- openpatch.c | 2 +- strippath.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openpatch.c b/openpatch.c index 86b7b7d..ee72236 100644 --- a/openpatch.c +++ b/openpatch.c @@ -56,7 +56,7 @@ static void openpatch_symbol(t_openpatch *x, t_symbol *s) } else { strcpy (filename,s->s_name); - sprintf (path,x->x_path->s_name); + strcpy (path,x->x_path->s_name); } post ("path:%s , name:%s",path,filename); glob_evalfile(0,gensym(filename),gensym(path)); diff --git a/strippath.c b/strippath.c index 8af95fe..e192aff 100644 --- a/strippath.c +++ b/strippath.c @@ -49,7 +49,7 @@ static void strippath_symbol(t_strippath *x, t_symbol *s) } else { strcpy (filename,s->s_name); - sprintf (path,x->x_path->s_name); + strcpy (path,x->x_path->s_name); } outlet_symbol(x->x_obj.ob_outlet,gensym(filename)); // post ("path:%s , name:%s",path,filename); -- cgit v1.2.1