1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/japanese/edict/files/patch-xjdxgen.c
Tilman Keskinoz 223d9addfc Unbreak on amd64
Set maintainership back to ports

PR:		125683
Submitted by:	Kazunori_Fujiwara <fujiwara@wide.ad.jp>
Approved by:	maintainer
2008-07-27 18:44:06 +00:00

21 lines
525 B
C

--- xjdxgen.c.orig 1998-09-11 05:04:21.000000000 +0200
+++ xjdxgen.c 2008-07-27 20:39:29.000000000 +0200
@@ -23,7 +23,7 @@
#include <sys/stat.h>
#include <stdio.h>
-/*#include <stdlib.h>*/
+#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include "xjdic.h"
@@ -154,7 +154,7 @@
db[diclen] = 10;
db[0] = 10;
printf("Dictionary size: %ld bytes.\n",dbyte);
- indlen = (diclen * 3)/4;
+ indlen = (diclen * 3*(sizeof(long)/4))/4;
jindex = (unsigned long *)malloc(indlen);
if(jindex == NULL)
{