diff options
Diffstat (limited to 'hw/ide.c')
| -rw-r--r-- | hw/ide.c | 3 |
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; } } |