X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffolder_delmsgs.c;h=3165883837153424441fb7f800eba8b486373c69;hp=17b99bef6f857524eec1d92bb68f2e25339b38af;hb=5cb46b33551f28e4168989e752e09bd927e993f9;hpb=8edc5aaf86f9f77124664f6801bc6c6cdf258173 diff --git a/sbr/folder_delmsgs.c b/sbr/folder_delmsgs.c index 17b99be..3165883 100644 --- a/sbr/folder_delmsgs.c +++ b/sbr/folder_delmsgs.c @@ -6,6 +6,8 @@ ** complete copyright information. */ +#include +#include #include /* @@ -26,7 +28,6 @@ folder_delmsgs(struct msgs *mp, int hook) /* unselect message */ unset_selected(mp, msgnum); - mp->numsel--; snprintf(msgpath, sizeof (msgpath), "%s/%d", mp->foldpath, msgnum); @@ -50,7 +51,7 @@ folder_delmsgs(struct msgs *mp, int hook) /* Sanity check */ if (mp->numsel != 0) - adios(NULL, "oops, mp->numsel should be 0"); + adios(EX_SOFTWARE, NULL, "oops, mp->numsel should be 0"); /* Mark that the sequence information has changed */ mp->msgflags |= SEQMOD;