diff options
author | Jose Antonio Ortega Ruiz <jao@imladris> | 2014-05-21 05:25:26 +0200 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@imladris> | 2014-05-21 05:25:26 +0200 |
commit | 63fab7aaf443112feb6f5ddcab0fafe8b5911af9 (patch) | |
tree | 51abb961e2ef1ae3e8a4ab5f34d99b1aae7b4211 /mixlib/xmix_vm_handlers.c | |
parent | 89522e543d73e04c1e0204e287d53e27079cdab7 (diff) | |
download | mdk-63fab7aaf443112feb6f5ddcab0fafe8b5911af9.tar.gz mdk-63fab7aaf443112feb6f5ddcab0fafe8b5911af9.tar.bz2 |
Avoiding format strings security warnings (cf. #8467)
Diffstat (limited to 'mixlib/xmix_vm_handlers.c')
-rw-r--r-- | mixlib/xmix_vm_handlers.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mixlib/xmix_vm_handlers.c b/mixlib/xmix_vm_handlers.c index b856709..a567f38 100644 --- a/mixlib/xmix_vm_handlers.c +++ b/mixlib/xmix_vm_handlers.c @@ -1,7 +1,7 @@ /* -*-c-*- -------------- xmix_vm_handlers.c : * Implementation of the functions declared in xmix_vm_handlers.h * ------------------------------------------------------------------ - * Copyright (C) 2001, 2002, 2003, 2004, 2006, 2007, 2010 Free Software Foundation, Inc. + * Copyright (C) 2001, 2002, 2003, 2004, 2006, 2007, 2010, 2014 Free Software Foundation, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -1360,8 +1360,8 @@ gboolean cmd_pprog_ (mix_vm_cmd_dispatcher_t *dis, const gchar *arg) { const gchar *path = mix_vm_cmd_dispatcher_get_program_path (dis); - fprintf (dis->out, path? path : _("No program currently loaded")); - fprintf (dis->out, "\n"); + fprintf (dis->out, "%s", path? path : _("No program currently loaded")); + fprintf (dis->out, "%s", "\n"); return (path != NULL); } @@ -1369,8 +1369,8 @@ gboolean cmd_psrc_ (mix_vm_cmd_dispatcher_t *dis, const gchar *arg) { const gchar *path = mix_vm_cmd_dispatcher_get_src_file_path (dis); - fprintf (dis->out, path? path : _("No program currently loaded\n")); - fprintf (dis->out, "\n"); + fprintf (dis->out, "%s", path? path : _("No program currently loaded\n")); + fprintf (dis->out, "%s", "\n"); return (path != NULL); } |