summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhemagx <hemagx2@gmail.com>2016-02-07 20:51:00 +0200
committerhemagx <hemagx2@gmail.com>2016-02-07 20:51:00 +0200
commited3387430588f2786d2e9b72723c1d54401f65da (patch)
treefec807dcc933253372a0bf6701e4d13653ca804f
parent1fd628e7be9e6de4ea48394be09ae10e912d8f3d (diff)
downloadhercules-ed3387430588f2786d2e9b72723c1d54401f65da.tar.gz
hercules-ed3387430588f2786d2e9b72723c1d54401f65da.tar.bz2
hercules-ed3387430588f2786d2e9b72723c1d54401f65da.tar.xz
hercules-ed3387430588f2786d2e9b72723c1d54401f65da.zip
Fix blind defined macro WFIFO2PTR
Follow up b77735473db348a65b749a79549852713f142dc1
-rw-r--r--src/common/socket.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/socket.h b/src/common/socket.h
index 8936c7772..e99278052 100644
--- a/src/common/socket.h
+++ b/src/common/socket.h
@@ -80,7 +80,7 @@ struct hplugin_data_store;
#define RP2PTR(fd) RFIFO2PTR(fd)
/* [Hemagx/Hercules] */
-#define WFIFO2PTR(fd) (void*)(sockt->session[fd]->wdata + sockt->session[fd]->wdata_pos)
+#define WFIFO2PTR(fd) (void*)(sockt->session[fd]->wdata + sockt->session[fd]->wdata_size)
#define WP2PTR(fd) WFIFO2PTR(fd)
// buffer I/O macros