From: pbrook Date: Sat, 11 Mar 2006 20:37:58 +0000 (+0000) Subject: Fix off by one length calciulation. X-Git-Tag: release_0_8_1~116 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c8ea7d16f380a1d20ccb34dc538e735ccf123eba;p=xenclient%2Fioemu.git Fix off by one length calciulation. --- diff --git a/hw/usb.c b/hw/usb.c index b2830c59..758b341f 100644 --- a/hw/usb.c +++ b/hw/usb.c @@ -183,7 +183,7 @@ int set_usb_string(uint8_t *buf, const char *str) q = buf; len = strlen(str); - *q++ = 2 * len + 1; + *q++ = 2 * len + 2; *q++ = 3; for(i = 0; i < len; i++) { *q++ = str[i];