aboutsummaryrefslogtreecommitdiffstats
path: root/hw/ide.c
diff options
context:
space:
mode:
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 bc82bb21d..3715b9c96 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;
}
}