aboutsummaryrefslogtreecommitdiff
path: root/src/libventi/fcall.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libventi/fcall.c')
-rw-r--r--src/libventi/fcall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libventi/fcall.c b/src/libventi/fcall.c
index f2a03753..611246f7 100644
--- a/src/libventi/fcall.c
+++ b/src/libventi/fcall.c
@@ -182,7 +182,7 @@ vtfcallunpack(VtFcall *f, Packet *p)
case 2:
if(packetconsume(p, buf, 2) < 0)
goto Err;
- f->count = (buf[2] << 8) | buf[3];
+ f->count = (buf[0] << 8) | buf[1];
break;
case 4:
if(packetconsume(p, buf, 4) < 0)