diff options
-rw-r--r-- | src/common/socket.h | 2 |
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 |