projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b31187
)
Fix off by one length calciulation.
author
pbrook
<pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 11 Mar 2006 20:37:58 +0000
(20:37 +0000)
committer
pbrook
<pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 11 Mar 2006 20:37:58 +0000
(20:37 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1781
c046a42c
-6fe2-441c-8c8c-
71466251a162
hw/usb.c
patch
|
blob
|
history
diff --git
a/hw/usb.c
b/hw/usb.c
index
b2830c5
..
758b341
100644
(file)
--- 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];