freebsd-ports/japanese/canna-server/files/patch-lib-RK-ncache.c
Norikatsu Shigemura 4912d6624e Fix crash issue of cannaserver.
Obtained from:	NetBSD, Canna CVS Repositry
Approved by:	portmgr (marcus)
Committed at:	the 27th EBUG Meeting at Bandai, Niigata, Japan (Powered by Daisuke)
Committed with:	EBUG Members (hre, karl, daigu, high, mikio, kaw and nork@)
2008-09-20 09:59:24 +00:00

11 lines
344 B
C

--- lib/RK/ncache.c.orig 2003-09-17 17:50:52.000000000 +0900
+++ lib/RK/ncache.c 2008-09-20 01:46:07.000000000 +0900
@@ -27,7 +27,7 @@
#include "RKintern.h"
#define NCHASH 101
-#define hash(x) ((int)((x)%NCHASH))
+#define hash(x) ((int)(((unsigned long)(x))%NCHASH))
static struct ncache Nchash[NCHASH];
static struct ncache Ncfree;