[exim-cvs] malware.c: avoid arithmetic on a void pointer.

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Exim Git Commits Mailing List
Datum:  
To: exim-cvs
Betreff: [exim-cvs] malware.c: avoid arithmetic on a void pointer.
Gitweb: http://git.exim.org/exim.git/commitdiff/f1a29782e1db8bae2bdadf1335c3687cb8b820f6
Commit:     f1a29782e1db8bae2bdadf1335c3687cb8b820f6
Parent:     867fcbf59a53d5acbab505bc7670e7d0c29dbc94
Author:     Tony Finch <dot@???>
AuthorDate: Mon May 9 11:20:26 2011 +0100
Committer:  Tony Finch <dot@???>
CommitDate: Mon May 9 11:20:26 2011 +0100


    malware.c: avoid arithmetic on a void pointer.
---
 doc/doc-txt/ChangeLog |    2 ++
 src/src/malware.c     |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)


diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog
index d3b3609..e782b9e 100644
--- a/doc/doc-txt/ChangeLog
+++ b/doc/doc-txt/ChangeLog
@@ -9,6 +9,8 @@ Exim version 4.77
 PP/01 Solaris build fix for Oracle's LDAP libraries.
       Bugzilla 1109, patch from Stephen Usher.


+TF/01 HP/UX build fix: avoid arithmetic on a void pointer.
+

Exim version 4.76
-----------------
diff --git a/src/src/malware.c b/src/src/malware.c
index de8d08d..8aab6df 100644
--- a/src/src/malware.c
+++ b/src/src/malware.c
@@ -1917,7 +1917,7 @@ static int mksd_scan_packed(int sock, uschar *scan_filename)
iov[0].iov_len = 3;
iov[1].iov_base = CS scan_filename;
iov[1].iov_len = Ustrlen(scan_filename);
- iov[2].iov_base = (void *) cmd + 3;
+ iov[2].iov_base = (void *) (cmd + 3);
iov[2].iov_len = 1;

if (mksd_writev (sock, iov, 3) < 0)