From e19a05bad44e548ad6f6d1865b5f797d5d70417c Mon Sep 17 00:00:00 2001 From: Jon Steinhart Date: Tue, 12 Oct 2004 20:31:14 +0000 Subject: [PATCH] Fixed bug that was producing an incorrect path for the external hook. --- sbr/folder_delmsgs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbr/folder_delmsgs.c b/sbr/folder_delmsgs.c index 4567f6d..20ac1a5 100644 --- a/sbr/folder_delmsgs.c +++ b/sbr/folder_delmsgs.c @@ -93,7 +93,7 @@ folder_delmsgs (struct msgs *mp, int unlink_msgs, int nohook) */ if (!nohook) { - (void)snprintf(msgpath, sizeof (msgpath), "%s/%d", getcwd(msgpath, sizeof (msgpath)), msgnum); + (void)snprintf(msgpath, sizeof (msgpath), "%s/%d", mp->foldpath, msgnum); (void)ext_hook("del-hook", msgpath, (char *)0); } -- 1.7.10.4