The previous commit was actually for CtdlDeleteMessages()
authorArt Cancro <ajc@citadel.org>
Thu, 17 Aug 2023 22:23:20 +0000 (13:23 -0900)
committerArt Cancro <ajc@citadel.org>
Thu, 17 Aug 2023 22:23:20 +0000 (13:23 -0900)
citadel/server/msgbase.c

index 6b5aec0e1de25bd69eba548c0f954260c7a1a1a5..6878de8ec665ae09f4890a545335decdab3606d7 100644 (file)
@@ -3287,8 +3287,7 @@ int CtdlDeleteMessages(const char *room_name,     // which room
                }
 */
                num_msgs = sort_msglist(msglist, num_msgs);
-               cdb_store(CDB_MSGLISTS, &qrbuf.QRnumber, (int)sizeof(long),
-                         msglist, (int)(num_msgs * sizeof(long)));
+               cdb_store(CDB_MSGLISTS, &qrbuf.QRnumber, (int)sizeof(long), msglist, (int)(num_msgs * sizeof(long)));
 
                if (num_msgs > 0)
                        qrbuf.QRhighest = msglist[num_msgs - 1];