diff options
author | Debian Multimedia Maintainers <debian-multimedia@lists.debian.org> | 2022-11-25 00:03:08 +0100 |
---|---|---|
committer | IOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org> | 2022-11-25 00:03:08 +0100 |
commit | d769091812d3d11f802cde5cefbc2d19a06306da (patch) | |
tree | 82c34036c7277664849c1a260e816eb05030d448 | |
parent | 327119aefd0bd1d00395eb11aee7c08eec0ccad6 (diff) |
fixed format-security errors
Forwarded: no
Last-Update: 2017-01-15
Last-Update: 2017-01-15
Gbp-Pq: Name format-security.patch
-rw-r--r-- | cdplayer.c | 2 | ||||
-rw-r--r-- | openpatch.c | 2 | ||||
-rw-r--r-- | strippath.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -29,7 +29,7 @@ static void *cdplayer_new() t_cdplayer *x = (t_cdplayer *)pd_new(cdplayer_class); outlet_new(&x->x_obj, &s_bang); - sprintf(devicename,"/dev/cdrom"); + sprintf(devicename, "%s", "/dev/cdrom"); x->device = gensym(devicename); /* fd = open(x->device->s_name, O_RDONLY); diff --git a/openpatch.c b/openpatch.c index 915a379..3591a1a 100644 --- a/openpatch.c +++ b/openpatch.c @@ -55,7 +55,7 @@ static void openpatch_symbol(t_openpatch *x, t_symbol *s) } else { strcpy (filename,s->s_name); - sprintf (path,x->x_path->s_name); + sprintf (path, "%s", 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..a6fe3d4 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); + sprintf (path, "%s", x->x_path->s_name); } outlet_symbol(x->x_obj.ob_outlet,gensym(filename)); // post ("path:%s , name:%s",path,filename); |