summaryrefslogtreecommitdiff
path: root/src/common/socket.h
diff options
context:
space:
mode:
authorj-tkay <joseph.tk.ea@gmail.com>2013-07-04 05:17:17 +0800
committerj-tkay <joseph.tk.ea@gmail.com>2013-07-04 05:17:17 +0800
commitca0205134beb9ba26e989c9fc3820c086d4d22a7 (patch)
tree6790ece04272e548a46ee2255364b026def3fd6e /src/common/socket.h
parent28a9fec0916db3d92629ae6e6cd62b5777b09e73 (diff)
parentd88be27960c4508c2f61a729fb5e4c89965b7e0b (diff)
downloadhercules-ca0205134beb9ba26e989c9fc3820c086d4d22a7.tar.gz
hercules-ca0205134beb9ba26e989c9fc3820c086d4d22a7.tar.bz2
hercules-ca0205134beb9ba26e989c9fc3820c086d4d22a7.tar.xz
hercules-ca0205134beb9ba26e989c9fc3820c086d4d22a7.zip
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/common/socket.h')
-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 b58cbdccf..82f8b84c3 100644
--- a/src/common/socket.h
+++ b/src/common/socket.h
@@ -50,7 +50,7 @@
} while(0)
/* [Ind/Hercules] */
-#define RFIFO2PTR(fd,len) (void*)(session[fd]->rdata + len)
+#define RFIFO2PTR(fd) (void*)(session[fd]->rdata + session[fd]->rdata_pos)
// buffer I/O macros
#define RBUFP(p,pos) (((uint8*)(p)) + (pos))