Package: ncurses-hexedit / 0.9.7+orig-7.1

fix_search_on_64bit_sys.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From: =?utf-8?q?Eduardo_P=C3=A9rez_Ureta?= <edpeur@gmail.com>
Date: Sun, 1 Jun 2008 22:47:51 +0000
Subject: Fix search on 64-bit systems.
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

Description: Fix search on 64-bit systems.
Author: Eduardo PĂ©rez Ureta <edpeur@gmail.com>
Bug-Debian: https://bugs.debian.org/484056
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
---
 src/search.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/search.c b/src/search.c
index 739ee7c..8272451 100644
--- a/src/search.c
+++ b/src/search.c
@@ -39,7 +39,7 @@ boyer_moore_search (unsigned char *substr, unsigned long offs,
    if (!buf)
       return &found;
 
-   memset (l_table, 0, 256 * sizeof (int));
+   memset (l_table, 0, sizeof (l_table));
    i = 0;
    s = substr + len - 1;
    while (i < len)