X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/8a14191c0a0ad15bb8f35b49748c75c1e0a8c2f4..2b60a54adb3b0bf5a9b927708085492b816a6015:/sbr/ext_hook.c 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); }