shithub: Nail

Download patch

ref: efc2d967bb2d6ca8ef68bcc43f89bcd0e0f0be3a
parent: 456ca6c5a7d0307ffe95e4d9ecf487fab92028d4
author: Ori Bernstein <[email protected]>
date: Wed Nov 4 23:54:47 EST 2020

add missing sizeof

--- a/mbox.c
+++ b/mbox.c
@@ -648,7 +648,7 @@
 	for(i = idx; i < mbox.nmesg; i++)
 		if(mbox.mesg[i] == m)
 			break;
-	memmove(&mbox.mesg[idx + 1], &mbox.mesg[idx], i - idx);
+	memmove(&mbox.mesg[idx + 1], &mbox.mesg[idx], (i - idx)*sizeof(Mesg*));
 	mbox.mesg[idx] = m;
 }