Changeset a81e6a0 for root_commands.c


Ignore:
Timestamp:
2018-03-19T15:39:40Z (12 months ago)
Author:
dequis <dx@…>
Branches:
master
Children:
1de945b
Parents:
715abe4
git-author:
dequis <dx@…> (19-03-18 15:38:41)
git-committer:
dequis <dx@…> (19-03-18 15:39:40)
Message:

root_commands: Fix -Wformat-security errors

Showed up in debian builds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    r715abe4 ra81e6a0  
    441441                        char *msg = explain_unknown_protocol(cmd[2]);
    442442                        irc_rootmsg(irc, "Unknown protocol");
    443                         irc_rootmsg(irc, msg);
     443                        irc_rootmsg(irc, "%s", msg);
    444444                        g_free(msg);
    445445                        return;
     
    595595                        char *msg = explain_unknown_protocol(proto);
    596596                        irc_rootmsg(irc, "Unknown protocol `%s'", proto);
    597                         irc_rootmsg(irc, msg);
     597                        irc_rootmsg(irc, "%s", msg);
    598598                        g_free(msg);
    599599                } else {
     
    10571057
    10581058        if (error) {
    1059                 irc_rootmsg(irc, error->message);
     1059                irc_rootmsg(irc, "%s", error->message);
    10601060                g_error_free(error);
    10611061        }
Note: See TracChangeset for help on using the changeset viewer.