From ed3387430588f2786d2e9b72723c1d54401f65da Mon Sep 17 00:00:00 2001 From: hemagx Date: Sun, 7 Feb 2016 20:51:00 +0200 Subject: Fix blind defined macro WFIFO2PTR Follow up b77735473db348a65b749a79549852713f142dc1 --- src/common/socket.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/socket.h') 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 -- cgit v1.2.3-60-g2f50