X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fext_hook.c;h=a4b093431271038fe10aa6fb1b8de4e705cd58e1;hp=8986c03953011823b5a60f5046955005ea4b5259;hb=240013872c392fe644bd4f79382d9f5314b4ea60;hpb=b067ff5c465a5d243ce5a19e562085a9a1a97215 diff --git a/sbr/ext_hook.c b/sbr/ext_hook.c index 8986c03..a4b0934 100644 --- a/sbr/ext_hook.c +++ b/sbr/ext_hook.c @@ -1,11 +1,11 @@ /* - * Run a program that hooks into some other system. The first argument is - * name of the hook to use, the second is the full path name of a mail message. - * The third argument is also the full path name of a mail message, or a NULL - * pointer if it isn't needed. Look in the context for an error message if - * something goes wrong; there is a built-in message in case one isn't - * specified. Only produce the error message once. - */ +** Run a program that hooks into some other system. The first argument is +** name of the hook to use, the second is the full path name of a mail message. +** The third argument is also the full path name of a mail message, or a NULL +** pointer if it isn't needed. Look in the context for an error message if +** something goes wrong; there is a built-in message in case one isn't +** specified. Only produce the error message once. +*/ #include @@ -29,7 +29,7 @@ ext_hook(char *hook_name, char *message_file_name_1, char *message_file_name_2) break; case 0: - vec[0] = r1bindex(hook, '/'); + vec[0] = mhbasename(hook); vec[1] = message_file_name_1; vec[2] = message_file_name_2; vec[3] = (char *)0;