git-svn: trunk@2692
Nigel Horne authored on 2007/02/10 20:22:52... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Sat Feb 10 11:22:16 GMT 2007 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav/pdf.c: Fix warning on 64bit machines |
|
4 |
+ |
|
1 | 5 |
Sat Feb 10 01:04:59 CET 2007 (tk) |
2 | 6 |
--------------------------------- |
3 | 7 |
* sigtool/sigtool.c: add support for SIGNDUSER and SIGNDPASS (bb#252) |
... | ... |
@@ -15,7 +15,7 @@ |
15 | 15 |
* along with this program; if not, write to the Free Software |
16 | 16 |
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
17 | 17 |
*/ |
18 |
-static char const rcsid[] = "$Id: pdf.c,v 1.58 2007/01/25 13:59:56 njh Exp $"; |
|
18 |
+static char const rcsid[] = "$Id: pdf.c,v 1.59 2007/02/10 11:21:40 njh Exp $"; |
|
19 | 19 |
|
20 | 20 |
#if HAVE_CONFIG_H |
21 | 21 |
#include "clamav-config.h" |
... | ... |
@@ -632,7 +632,7 @@ cli_pmemstr(const char *haystack, size_t hs, const char *needle, size_t ns) |
632 | 632 |
n = hs; |
633 | 633 |
|
634 | 634 |
while((pt = memchr(hay, needle[0], n)) != NULL) { |
635 |
- n -= (int) pt - (int) hay; |
|
635 |
+ n -= (size_t)(pt - hay); |
|
636 | 636 |
if(n < ns) |
637 | 637 |
break; |
638 | 638 |
|