X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffolder_delmsgs.c;h=3165883837153424441fb7f800eba8b486373c69;hp=0ecf382b9ad40eb0113005e7d505a7d77a9f1ec5;hb=431604647f89d5aac7b199a7883e98e56e4ccf9e;hpb=2abb9a7cfb0930e27062088734d306e7d78e4cc2 diff --git a/sbr/folder_delmsgs.c b/sbr/folder_delmsgs.c index 0ecf382..3165883 100644 --- a/sbr/folder_delmsgs.c +++ b/sbr/folder_delmsgs.c @@ -6,6 +6,7 @@ ** complete copyright information. */ +#include #include #include @@ -27,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); @@ -51,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;