pkgsrc-ng/mail/mush/patches/patch-msgs.c
2014-08-11 13:27:10 +02:00

17 lines
403 B
C

$NetBSD: patch-msgs.c,v 1.1 2013/11/04 15:34:38 christos Exp $
Avoid pointer<->integer conversions
--- msgs.c 2013-11-04 10:20:09.000000000 -0500
+++ msgs.c 2013-11-04 10:28:09.000000000 -0500
@@ -817,7 +817,7 @@
cnt = msg_cnt;
(void) fseek(fp, append == 1 ? msg[cnt].m_offset : 0L, L_SET);
} else {
- cnt = (int)list;
+ cnt = *(int *)list;
old = msg[cnt];
}
Only in www: mush.core