- Fix search on 64-bit systems

This commit is contained in:
Dmitry Marakasov 2013-01-28 17:47:30 +00:00
parent 62f3cebd18
commit 3d0cb520b3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=311132
2 changed files with 12 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= chexedit
PORTVERSION= 0.9.7
PORTREVISION= 1
CATEGORIES= editors
MASTER_SITES= http://www.rogoyski.com/adam/programs/hexedit/ \
http://mirror.amdmi3.ru/distfiles/

View File

@ -0,0 +1,11 @@
--- src/search.c.orig 1999-06-27 17:45:29.000000000 +0400
+++ src/search.c 2013-01-28 21:43:29.590293182 +0400
@@ -39,7 +39,7 @@
if (!buf)
return &found;
- memset (l_table, 0, 256 * sizeof (int));
+ memset (l_table, 0, 256 * sizeof (unsigned long));
i = 0;
s = substr + len - 1;
while (i < len)