diff options
author | Debian Multimedia Maintainers <debian-multimedia@lists.debian.org> | 2024-03-18 18:06:49 +0100 |
---|---|---|
committer | IOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org> | 2024-03-18 18:06:49 +0100 |
commit | d323ed205066f0223201e4cf07ea6839699b19af (patch) | |
tree | bb14c78e3d7e884210d82b4d9055b593c0ff1c86 | |
parent | 4cabfd808a5fc1c43b3be6597fda54da6791974d (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 0c8ff87..d152869 100644 --- a/openpatch.c +++ b/openpatch.c @@ -60,7 +60,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); |