aboutsummaryrefslogtreecommitdiff
path: root/hw/ide.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-17 03:15:52 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-12-17 03:15:52 +0000
commit69b349765c95b76a446011ee71de57c07c1371e8 (patch)
tree179c9d104178f1e15f61bcbc2bfc2a2849a17bf8 /hw/ide.c
parent96b8f136f52ea2dc5948fe24f0bf4483251ac280 (diff)
Fix miscellaneous minor things, by Andre Przywara.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3826 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/ide.c')
-rw-r--r--hw/ide.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/ide.c b/hw/ide.c
index bc82bb21d1..3715b9c966 100644
--- a/hw/ide.c
+++ b/hw/ide.c
@@ -430,8 +430,7 @@ static void padstr(char *str, const char *src, int len)
v = *src++;
else
v = ' ';
- *(char *)((long)str ^ 1) = v;
- str++;
+ str[i^1] = v;
}
}