X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/8a14191c0a0ad15bb8f35b49748c75c1e0a8c2f4..532fff590b4cfbfbd0633d6b58ca1ab0fec2777d:/sbr/ext_hook.c?ds=sidebyside diff --git a/sbr/ext_hook.c b/sbr/ext_hook.c index d29c046a..befbd94b 100644 --- a/sbr/ext_hook.c +++ b/sbr/ext_hook.c @@ -50,7 +50,7 @@ ext_hook(char *hook_name, char *message_file_name_1, char *message_file_name_2) if (did_message == 0) { char *msghook; if ((msghook = context_find("msg-hook")) != NULL) - inform(msghook); + inform("%s", msghook); else { char errbuf[BUFSIZ]; snprintf(errbuf, sizeof(errbuf), "external hook \"%s\"", hook); @@ -60,8 +60,6 @@ ext_hook(char *hook_name, char *message_file_name_1, char *message_file_name_2) } return (NOTOK); - } - - else + } else return (OK); }