diff options
author | Michael Brown <mcb30@ipxe.org> | 2012-03-01 14:20:32 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2012-03-01 14:20:32 +0000 |
commit | cd29df5c0829e6f1a6a72e3bd69b459abe9835fa (patch) | |
tree | 4b85588df162373fe3af094f39b671b0e585abc7 | |
parent | fa538bdbc631681c0234a607b43543efd1f56a57 (diff) |
[vmware] Fix length returned by guestrpc_command()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r-- | src/arch/i386/interface/vmware/guestrpc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/arch/i386/interface/vmware/guestrpc.c b/src/arch/i386/interface/vmware/guestrpc.c index 72860e74..a19e5bff 100644 --- a/src/arch/i386/interface/vmware/guestrpc.c +++ b/src/arch/i386/interface/vmware/guestrpc.c @@ -292,6 +292,7 @@ int guestrpc_command ( int channel, const char *command, char *reply, if ( status_len ) { *(status_bytes++) = ( data & 0xff ); status_len--; + len--; } else if ( reply_len ) { *(reply_bytes++) = ( data & 0xff ); reply_len--; |