diff options
| author | Michael Brown | 2012-03-01 15:20:32 +0100 |
|---|---|---|
| committer | Michael Brown | 2012-03-01 15:20:32 +0100 |
| commit | cd29df5c0829e6f1a6a72e3bd69b459abe9835fa (patch) | |
| tree | 4b85588df162373fe3af094f39b671b0e585abc7 | |
| parent | [vmware] Add VMware logfile console (CONSOLE_VMWARE) (diff) | |
| download | ipxe-cd29df5c0829e6f1a6a72e3bd69b459abe9835fa.tar.gz ipxe-cd29df5c0829e6f1a6a72e3bd69b459abe9835fa.tar.xz ipxe-cd29df5c0829e6f1a6a72e3bd69b459abe9835fa.zip | |
[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 72860e745..a19e5bff0 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--; |
